Class MapCollectProcedure<T,K,V>
- java.lang.Object
-
- org.eclipse.collections.impl.block.procedure.MapCollectProcedure<T,K,V>
-
- All Implemented Interfaces:
java.io.Serializable,java.util.function.Consumer<T>,Procedure<T>
public final class MapCollectProcedure<T,K,V> extends java.lang.Object implements Procedure<T>
MapCollectProcedure uses a Function to calculate the key for an object and puts the object with the key into the specified Map.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Function<? super T,? extends K>keyFunctionprivate java.util.Map<K,V>mapprivate static longserialVersionUIDprivate Function<? super T,? extends V>valueFunction
-
Constructor Summary
Constructors Constructor Description MapCollectProcedure(java.util.Map<K,V> newMap, Function<? super T,? extends K> newKeyFunction)MapCollectProcedure(java.util.Map<K,V> newMap, Function<? super T,? extends K> newKeyFunction, Function<? super T,? extends V> newValueFunction)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidvalue(T object)
-