Class MutatingAggregationProcedure<T,K,V>
java.lang.Object
org.eclipse.collections.impl.block.procedure.MutatingAggregationProcedure<T,K,V>
- All Implemented Interfaces:
Serializable
,Consumer<T>
,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 mutable using this procedure. An example would be using an AtomicInteger which can be mutated
vs. an Integer which cannot.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MutableMapIterable
<K, V> private final Procedure2
<? super V, ? super T> private static final long
-
Constructor Summary
ConstructorsConstructorDescriptionMutatingAggregationProcedure
(MutableMapIterable<K, V> map, Function<? super T, ? extends K> groupBy, Function0<? extends V> zeroValueFactory, Procedure2<? super V, ? super T> mutatingAggregator) -
Method Summary