Package org.openjdk.jmc.common.item
Class Aggregators.SetAggregator<V,T>
- java.lang.Object
-
- org.openjdk.jmc.common.item.Aggregators.AggregatorBase<V,C>
-
- org.openjdk.jmc.common.item.Aggregators.MergingAggregator<V,Aggregators.SetConsumer<T>>
-
- org.openjdk.jmc.common.item.Aggregators.SetAggregator<V,T>
-
- All Implemented Interfaces:
IDescribable
,IAggregator<V,Aggregators.SetConsumer<T>>
,IItemConsumerFactory<Aggregators.SetConsumer<T>>
,IValueBuilder<V,java.util.Iterator<Aggregators.SetConsumer<T>>>
- Enclosing class:
- Aggregators
private abstract static class Aggregators.SetAggregator<V,T> extends Aggregators.MergingAggregator<V,Aggregators.SetConsumer<T>>
-
-
Field Summary
Fields Modifier and Type Field Description private IAccessorFactory<T>
attribute
-
Constructor Summary
Constructors Constructor Description SetAggregator(java.lang.String name, java.lang.String description, IAccessorFactory<T> attribute, IType<? super V> type)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
acceptType(IType<IItem> type)
Aggregators.SetConsumer<T>
newItemConsumer(IType<IItem> itemType)
-
Methods inherited from class org.openjdk.jmc.common.item.Aggregators.MergingAggregator
getValue, getValue
-
Methods inherited from class org.openjdk.jmc.common.item.Aggregators.AggregatorBase
getDescription, getName, getValueType
-
-
-
-
Field Detail
-
attribute
private final IAccessorFactory<T> attribute
-
-
Constructor Detail
-
SetAggregator
public SetAggregator(java.lang.String name, java.lang.String description, IAccessorFactory<T> attribute, IType<? super V> type)
-
-
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.SetConsumer<T> newItemConsumer(IType<IItem> itemType)
- Parameters:
itemType
- an item type to get an item consumer for- Returns:
- a new item consumer for the supplied type
-
-