comparison src/main/java/alice/test/codesegment/local/SingletonTestCodeSegment.java @ 547:e91a574b69de dispose

remove index
author Nozomi Teruya <e125769@ie.u-ryukyu.ac.jp>
date Tue, 18 Aug 2015 16:15:17 +0900
parents aefbe41fcf12
children
comparison
equal deleted inserted replaced
546:15eeb439830c 547:e91a574b69de
12 private SingletonTestCodeSegment(){} 12 private SingletonTestCodeSegment(){}
13 13
14 public static SingletonTestCodeSegment getInstance(){ 14 public static SingletonTestCodeSegment getInstance(){
15 return instance; 15 return instance;
16 } 16 }
17 int num = 0;
17 18
18 @Override 19 @Override
19 public void run() { 20 public void run() {
20 System.out.println("type = " + arg1.type); 21 System.out.println("type = " + arg1.type);
21 System.out.println("index = " + arg1.index); 22 //System.out.println("index = " + arg1.index);
22 System.out.println("data = " + arg1.getVal()); 23 System.out.println("data = " + arg1.getVal());
23 System.out.println(((Value)arg1.getVal()).getType()); 24 System.out.println(((Value)arg1.getVal()).getType());
24 25
25 if (arg1.index == 10) { 26 if (num++ == 10) {
26 System.exit(0); 27 System.exit(0);
27 return; 28 return;
28 } 29 }
29 30
30 this.recycle(); 31 this.recycle();