Class NonMutatingAggregationProcedure<T,K,V>
- java.lang.Object
-
- org.eclipse.collections.impl.block.procedure.NonMutatingAggregationProcedure<T,K,V>
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.function.Consumer<T>
,Procedure<T>
public final class NonMutatingAggregationProcedure<T,K,V> extends java.lang.Object implements Procedure<T>
This procedure is used to apply an aggregate function like sum on a grouped set of data. The values in the grouping must be immutable using this procedure. An example would be using an Integer which is immutable vs. an AtomicInteger which is not.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Function<? super T,? extends K>
groupBy
private MutableMapIterable<K,V>
map
private Function2<? super V,? super T,? extends V>
nonMutatingAggregator
private static long
serialVersionUID
private Function0<? extends V>
zeroValueFactory
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
value(T each)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
map
private final MutableMapIterable<K,V> map
-
-