private abstract static class Aggregators.SetAggregator<V,T> extends Aggregators.MergingAggregator<V,Aggregators.SetConsumer<T>>
Modifier and Type | Field and Description |
---|---|
private IAccessorFactory<T> |
attribute |
Constructor and Description |
---|
SetAggregator(java.lang.String name,
java.lang.String description,
IAccessorFactory<T> attribute,
IType<? super V> type) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptType(IType<IItem> type) |
Aggregators.SetConsumer<T> |
newItemConsumer(IType<IItem> itemType) |
getValue, getValue
getDescription, getName, getValueType
private final IAccessorFactory<T> attribute
public SetAggregator(java.lang.String name, java.lang.String description, IAccessorFactory<T> attribute, IType<? super V> type)
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.SetConsumer<T> newItemConsumer(IType<IItem> itemType)
itemType
- an item type to get an item consumer for