Package org.openjdk.jmc.common.item
Class Aggregators.CountConsumer
- java.lang.Object
-
- org.openjdk.jmc.common.item.Aggregators.CountConsumer
-
- All Implemented Interfaces:
IItemConsumer<Aggregators.CountConsumer>
- Enclosing class:
- Aggregators
public static class Aggregators.CountConsumer extends Object implements IItemConsumer<Aggregators.CountConsumer>
-
-
Constructor Summary
Constructors Constructor Description CountConsumer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconsume(IItem item)Consumes another item.intgetCount()Aggregators.CountConsumermerge(Aggregators.CountConsumer other)Merges this object with the supplied object.
-
-
-
Method Detail
-
consume
public void consume(IItem item)
Description copied from interface:IItemConsumerConsumes another item.- Specified by:
consumein interfaceIItemConsumer<Aggregators.CountConsumer>
-
merge
public Aggregators.CountConsumer merge(Aggregators.CountConsumer other)
Description copied from interface:IItemConsumerMerges this object with the supplied object. Normally this is another item consumer of the same type and the output result is a consumer with an internal state that reflects the state of both the current consumer and the input value.- Specified by:
mergein interfaceIItemConsumer<Aggregators.CountConsumer>- Parameters:
other- another instance to merge with- Returns:
- the merged instance
-
getCount
public int getCount()
-
-