Interface IItemConsumerFactory<C extends IItemConsumer<C>>

Type Parameters:
C - see IItemConsumer
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 Details

    • acceptType

      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

      C newItemConsumer(IType<IItem> itemType)
      Parameters:
      itemType - an item type to get an item consumer for
      Returns:
      a new item consumer for the supplied type