Package org.openjdk.jmc.common.item
Class Aggregators.Count
- java.lang.Object
-
- org.openjdk.jmc.common.item.Aggregators.AggregatorBase<V,C>
-
- org.openjdk.jmc.common.item.Aggregators.MergingAggregator<IQuantity,Aggregators.CountConsumer>
-
- org.openjdk.jmc.common.item.Aggregators.Count
-
- All Implemented Interfaces:
IDescribable
,IAggregator<IQuantity,Aggregators.CountConsumer>
,IItemConsumerFactory<Aggregators.CountConsumer>
,IValueBuilder<IQuantity,java.util.Iterator<Aggregators.CountConsumer>>
- Enclosing class:
- Aggregators
private static class Aggregators.Count extends Aggregators.MergingAggregator<IQuantity,Aggregators.CountConsumer>
-
-
Constructor Summary
Constructors Constructor Description Count(java.lang.String name, java.lang.String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptType(IType<IItem> type)
IQuantity
getValue(Aggregators.CountConsumer consumer)
Aggregators.CountConsumer
newItemConsumer(IType<IItem> type)
-
Methods inherited from class org.openjdk.jmc.common.item.Aggregators.MergingAggregator
getValue
-
Methods inherited from class org.openjdk.jmc.common.item.Aggregators.AggregatorBase
getDescription, getName, getValueType
-
-
-
-
Method Detail
-
acceptType
public boolean acceptType(IType<IItem> type)
- Parameters:
type
- an item type to check if the the factory can create consumers for- Returns:
true
if the factory can create consumers for the supplied type,false
otherwise
-
newItemConsumer
public Aggregators.CountConsumer newItemConsumer(IType<IItem> type)
- Parameters:
type
- an item type to get an item consumer for- Returns:
- a new item consumer for the supplied type
-
getValue
public IQuantity getValue(Aggregators.CountConsumer consumer)
- Specified by:
getValue
in classAggregators.MergingAggregator<IQuantity,Aggregators.CountConsumer>
-
-