@Test public void testIncrementCount() { assertEquals(0, counter.get(1)); assertEquals(0, counter.get(2)); counter.incrementCount(); assertEquals(1, counter.get(1)); assertEquals(1, counter.get(2)); counter.incrementCount(2); assertEquals(3, counter.get(2)); }
public void incrementCount() { incrementCount(headSlot, 1); }
SlidingWindowCounter { public void incrementCount() { incrementCount(headSlot, 1); } }
SlidingWindowCounter { public void incrementCount() { incrementCount(headSlot, 1); } SlidingWindowCounter(int windowSlots); }
SlidingWindowCounter { public void incrementCount() { incrementCount(headSlot, 1); } SlidingWindowCounter(int windowSlots); void destroy(); void incrementCount(); void incrementCount(long value); long get(int slots); }
SlidingWindowCounter { public void incrementCount() { incrementCount(headSlot, 1); } SlidingWindowCounter(int windowSlots); void destroy(); void incrementCount(); void incrementCount(long value); long get(int slots);  }