@Test public void testIncrement() throws Exception { for(int threadCount : THREAD_COUNTS) { final Counter counter = new Counter(); execute(new Operation() { @Override public void execute() { counter.increment(); } }, threadCount); Assert.assertEquals(threadCount * (long)DATA_COUNT, counter.get()); } }
public void increment() { add(1); }
Counter { public void increment() { add(1); } }
Counter { public void increment() { add(1); } Counter();  Counter(long initValue); private  Counter(Cell initCell); }
Counter { public void increment() { add(1); } Counter();  Counter(long initValue); private  Counter(Cell initCell); void add(long delta); void increment(); void decrement(); void set(long value); long get(); @Override String toString(); }
Counter { public void increment() { add(1); } Counter();  Counter(long initValue); private  Counter(Cell initCell); void add(long delta); void increment(); void decrement(); void set(long value); long get(); @Override String toString();  }