Package org.openjdk.jmc.common.item
Class Aggregators.SetConsumer<T>
java.lang.Object
org.openjdk.jmc.common.item.Aggregators.SetConsumer<T>
- All Implemented Interfaces:
IItemConsumer<Aggregators.SetConsumer<T>>
- Enclosing class:
- Aggregators
public static class Aggregators.SetConsumer<T>
extends Object
implements IItemConsumer<Aggregators.SetConsumer<T>>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Consumes another item.merge
(Aggregators.SetConsumer<T> other) Merges this object with the supplied object.
-
Constructor Details
-
SetConsumer
-
-
Method Details
-
consume
Description copied from interface:IItemConsumer
Consumes another item.- Specified by:
consume
in interfaceIItemConsumer<T>
-
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<T>
- Parameters:
other
- another instance to merge with- Returns:
- the merged instance
-