Package org.openjdk.jmc.common.item
Interface IItemConsumerFactory<C extends IItemConsumer<C>>
- Type Parameters:
C- seeIItemConsumer
- All Known Subinterfaces:
IAggregator<V,C>
- All Known Implementing Classes:
Aggregators.AdvancedMaxAggregator,Aggregators.AdvancedMinAggregator,Aggregators.AggregatorBase,Aggregators.Avg,Aggregators.FieldAggregatorBase,Aggregators.MergingAggregator,Aggregators.MinMax,Aggregators.Stddev,Aggregators.Sum,Aggregators.Variance
public interface IItemConsumerFactory<C extends IItemConsumer<C>>
A factory that supplies item consumers for different types of items.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptType(IType<IItem> type) newItemConsumer(IType<IItem> itemType)
-
Method Details
-
acceptType
- Parameters:
type- an item type to check if the the factory can create consumers for- Returns:
trueif the factory can create consumers for the supplied type,falseotherwise
-
newItemConsumer
- Parameters:
itemType- an item type to get an item consumer for- Returns:
- a new item consumer for the supplied type
-