@Test public void testGet() { long value = counterGroup.get("test"); Assert.assertEquals(0, value); }
public synchronized Long get(String name) { return getCounter(name).get(); }
CounterGroup { public synchronized Long get(String name) { return getCounter(name).get(); } }
CounterGroup { public synchronized Long get(String name) { return getCounter(name).get(); } CounterGroup(); }
CounterGroup { public synchronized Long get(String name) { return getCounter(name).get(); } CounterGroup(); synchronized Long get(String name); synchronized Long incrementAndGet(String name); synchronized Long addAndGet(String name, Long delta); synchronized void add(CounterGroup counterGroup); synchronized void set(String name, Long value); synchronized AtomicLong getCounter(String name); @Override synchronized String toString(); synchronized String getName(); synchronized void setName(String name); synchronized HashMap<String, AtomicLong> getCounters(); synchronized void setCounters(HashMap<String, AtomicLong> counters); }
CounterGroup { public synchronized Long get(String name) { return getCounter(name).get(); } CounterGroup(); synchronized Long get(String name); synchronized Long incrementAndGet(String name); synchronized Long addAndGet(String name, Long delta); synchronized void add(CounterGroup counterGroup); synchronized void set(String name, Long value); synchronized AtomicLong getCounter(String name); @Override synchronized String toString(); synchronized String getName(); synchronized void setName(String name); synchronized HashMap<String, AtomicLong> getCounters(); synchronized void setCounters(HashMap<String, AtomicLong> counters);  }