public static class Aggregators.MinMaxConsumer<V extends java.lang.Comparable<V>> extends java.lang.Object implements IItemConsumer<Aggregators.MinMaxConsumer<V>>
Modifier and Type | Field and Description |
---|---|
private IMemberAccessor<? extends V,IItem> |
accessor |
private IItem |
item |
private boolean |
max |
private V |
value |
Constructor and Description |
---|
MinMaxConsumer(IMemberAccessor<? extends V,IItem> accessor,
boolean max) |
Modifier and Type | Method and Description |
---|---|
private void |
add(V newValue,
IItem newItem) |
void |
consume(IItem item)
Consumes another item.
|
Aggregators.MinMaxConsumer<V> |
merge(Aggregators.MinMaxConsumer<V> other)
Merges this object with the supplied object.
|
private final IMemberAccessor<? extends V extends java.lang.Comparable<V>,IItem> accessor
private final boolean max
private IItem item
public MinMaxConsumer(IMemberAccessor<? extends V,IItem> accessor, boolean max)
public void consume(IItem item)
IItemConsumer
consume
in interface IItemConsumer<Aggregators.MinMaxConsumer<V extends java.lang.Comparable<V>>>
public Aggregators.MinMaxConsumer<V> merge(Aggregators.MinMaxConsumer<V> other)
IItemConsumer
merge
in interface IItemConsumer<Aggregators.MinMaxConsumer<V extends java.lang.Comparable<V>>>
other
- another instance to merge with