@Test public void testinc() { Counter c = new DefaultCounter(clock, NoopId.INSTANCE); c.inc(); Assert.assertEquals(c.count(), 1L); c.inc(); c.inc(); Assert.assertEquals(c.count(), 3L); }
@Override public void inc() { count.incrementAndGet(); }
DefaultCounter implements Counter { @Override public void inc() { count.incrementAndGet(); } }
DefaultCounter implements Counter { @Override public void inc() { count.incrementAndGet(); } DefaultCounter(Clock clock, Id id); }
DefaultCounter implements Counter { @Override public void inc() { count.incrementAndGet(); } DefaultCounter(Clock clock, Id id); @Override Id id(); @Override Indicator<Long> measure(); @Override void inc(); @Override void inc(long amount); @Override void dec(); @Override void dec(long n); @Override long count(); }
DefaultCounter implements Counter { @Override public void inc() { count.incrementAndGet(); } DefaultCounter(Clock clock, Id id); @Override Id id(); @Override Indicator<Long> measure(); @Override void inc(); @Override void inc(long amount); @Override void dec(); @Override void dec(long n); @Override long count();  }