@Test public void testAggregateCountFilter() { agg = new AggregateCountFilter(Long.class); assertEquals(Long.class, agg.getValueType()); assertEquals(0L, agg.getValue()); agg.enter(SupportConst.I_TEN, true); assertEquals(1L, agg.getValue()); agg.enter(SupportConst.I_TWO, true); assertEquals(SupportConst.L_TWO, agg.getValue()); agg.leave(SupportConst.I_TWO, true); assertEquals(1L, agg.getValue()); agg.leave(SupportConst.I_TEN, true); assertEquals(0L, agg.getValue()); agg.enter(SupportConst.I_TEN, true); assertEquals(1L, agg.getValue()); agg.enter(SupportConst.I_TWO, false); assertEquals(1L, agg.getValue()); agg.leave(SupportConst.I_TWO, false); assertEquals(1L, agg.getValue()); agg.leave(SupportConst.I_TEN, true); assertEquals(0L, agg.getValue()); }
public AggregateCountFilter(Class< ? > type) { super(type); }
AggregateCountFilter extends AggregateCount { public AggregateCountFilter(Class< ? > type) { super(type); } }
AggregateCountFilter extends AggregateCount { public AggregateCountFilter(Class< ? > type) { super(type); } AggregateCountFilter(Class< ? > type); }
AggregateCountFilter extends AggregateCount { public AggregateCountFilter(Class< ? > type) { super(type); } AggregateCountFilter(Class< ? > type); IAggregate cloneAggregate(); @Override void enter(Object value, boolean filter); @Override void leave(Object value, boolean filter); }
AggregateCountFilter extends AggregateCount { public AggregateCountFilter(Class< ? > type) { super(type); } AggregateCountFilter(Class< ? > type); IAggregate cloneAggregate(); @Override void enter(Object value, boolean filter); @Override void leave(Object value, boolean filter);  }