V - the return value type, for example java.lang.StringT - the value type for the orderingprivate static class Aggregators.AdvancedMinMaxAggregator<V,T extends java.lang.Comparable<T>> extends Aggregators.FieldAggregatorBase<V,Aggregators.AdvancedMinMaxConsumer<V,T>>
| Modifier and Type | Field and Description |
|---|---|
private IAttribute<V> |
attribute |
private IAttribute<T> |
comparator |
private boolean |
max |
| Constructor and Description |
|---|
AdvancedMinMaxAggregator(java.lang.String name,
java.lang.String description,
IAttribute<V> attribute,
IAttribute<T> comparator,
boolean max) |
| Modifier and Type | Method and Description |
|---|---|
protected IMemberAccessor<? extends V,IItem> |
doGetAccessor(IType<IItem> type) |
V |
getValue(Aggregators.AdvancedMinMaxConsumer<V,T> consumer) |
Aggregators.AdvancedMinMaxConsumer<V,T> |
newItemConsumer(IType<IItem> type) |
acceptType, getAccessorgetValuegetDescription, getName, getValueTypeprivate final boolean max
private final IAttribute<V> attribute
private final IAttribute<T extends java.lang.Comparable<T>> comparator
public AdvancedMinMaxAggregator(java.lang.String name,
java.lang.String description,
IAttribute<V> attribute,
IAttribute<T> comparator,
boolean max)
public Aggregators.AdvancedMinMaxConsumer<V,T> newItemConsumer(IType<IItem> type)
type - an item type to get an item consumer forpublic V getValue(Aggregators.AdvancedMinMaxConsumer<V,T> consumer)
getValue in class Aggregators.MergingAggregator<V,Aggregators.AdvancedMinMaxConsumer<V,T extends java.lang.Comparable<T>>>protected IMemberAccessor<? extends V,IItem> doGetAccessor(IType<IItem> type)
doGetAccessor in class Aggregators.FieldAggregatorBase<V,Aggregators.AdvancedMinMaxConsumer<V,T extends java.lang.Comparable<T>>>