private static class Aggregators.Count extends Aggregators.MergingAggregator<IQuantity,Aggregators.CountConsumer>
Constructor and Description |
---|
Count(java.lang.String name,
java.lang.String description) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptType(IType<IItem> type) |
IQuantity |
getValue(Aggregators.CountConsumer consumer) |
Aggregators.CountConsumer |
newItemConsumer(IType<IItem> type) |
getValue
getDescription, getName, getValueType
public boolean acceptType(IType<IItem> type)
type
- an item type to check if the the factory can create consumers fortrue
if the factory can create consumers for the supplied type, false
otherwisepublic Aggregators.CountConsumer newItemConsumer(IType<IItem> type)
type
- an item type to get an item consumer forpublic IQuantity getValue(Aggregators.CountConsumer consumer)
getValue
in class Aggregators.MergingAggregator<IQuantity,Aggregators.CountConsumer>