Package org.openjdk.jmc.common.item
Class Aggregators.MinMaxConsumer<V extends Comparable<V>>
java.lang.Object
org.openjdk.jmc.common.item.Aggregators.MinMaxConsumer<V>
- All Implemented Interfaces:
IItemConsumer<Aggregators.MinMaxConsumer<V>>
- Enclosing class:
- Aggregators
public static class Aggregators.MinMaxConsumer<V extends Comparable<V>>
extends Object
implements IItemConsumer<Aggregators.MinMaxConsumer<V>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Consumes another item.merge
(Aggregators.MinMaxConsumer<V> other) Merges this object with the supplied object.
-
Constructor Details
-
MinMaxConsumer
-
-
Method Details
-
consume
Description copied from interface:IItemConsumer
Consumes another item.- Specified by:
consume
in interfaceIItemConsumer<V extends Comparable<V>>
-
merge
Description copied from interface:IItemConsumer
Merges this object with the supplied object. Normally this is another item consumer of the same type and the output result is a consumer with an internal state that reflects the state of both the current consumer and the input value.- Specified by:
merge
in interfaceIItemConsumer<V extends Comparable<V>>
- Parameters:
other
- another instance to merge with- Returns:
- the merged instance
-