Mercurial > hg > Database > Alice
comparison src/alice/test/codesegment/api/FlipCodeSegment.java @ 198:f151dea22b2c working
add flip api
author | sugi |
---|---|
date | Tue, 19 Mar 2013 01:25:09 +0900 |
parents | |
children | 15b68b65f8a4 |
comparison
equal
deleted
inserted
replaced
197:2b28d3c16a58 | 198:f151dea22b2c |
---|---|
1 package alice.test.codesegment.api; | |
2 | |
3 import alice.codesegment.CodeSegment; | |
4 | |
5 public class FlipCodeSegment extends CodeSegment{ | |
6 | |
7 private String key; | |
8 public FlipCodeSegment(String _key){ | |
9 this.key = _key; | |
10 } | |
11 | |
12 @Override | |
13 public void run() { | |
14 Integer num = new Integer(0); | |
15 ods.put(key, num, false); | |
16 //System.out.println("Key is " +key); | |
17 new FlipTest(key); | |
18 //for (int i = 0; i < 1000000; i++){ | |
19 //ods.put(key, num, false); | |
20 //System.out.println("put"); | |
21 //} | |
22 | |
23 | |
24 } | |
25 | |
26 } |