Top Description Fields Constructors Methods
org.eclipse.collections.impl.block.procedure

public final Class MapCollectProcedure<T, K, V>

extends Object
implements Procedure<T>
Class Inheritance
All Implemented Interfaces
org.eclipse.collections.api.block.procedure.Procedure, java.io.Serializable, java.util.function.Consumer
Imports
java.util.Map, org.eclipse.collections.api.block.function.Function, org.eclipse.collections.api.block.procedure.Procedure, org.eclipse.collections.impl.block.factory.Functions

MapCollectProcedure uses a Function to calculate the key for an object and puts the object with the key into the specified Map.

Field Summary

Modifier and TypeField and Description
private final Function<? super T, ? extends K>
private final Map<K, V>
private static final long
private final Function<? super T, ? extends V>

Constructor Summary

AccessConstructor and Description
public
MapCollectProcedure(Map<K, V> newMap, Function<? super T, ? extends K> newKeyFunction)

public
MapCollectProcedure(Map<K, V> newMap, Function<? super T, ? extends K> newKeyFunction, Function<? super T, ? extends V> newValueFunction)

Method Summary

Modifier and TypeMethod and Description
public void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

keyFunctionback to summary
private final Function<? super T, ? extends K> keyFunction
mapback to summary
private final Map<K, V> map
serialVersionUIDback to summary
private static final long serialVersionUID
valueFunctionback to summary
private final Function<? super T, ? extends V> valueFunction

Constructor Detail

MapCollectProcedureback to summary
public MapCollectProcedure(Map<K, V> newMap, Function<? super T, ? extends K> newKeyFunction)
MapCollectProcedureback to summary
public MapCollectProcedure(Map<K, V> newMap, Function<? super T, ? extends K> newKeyFunction, Function<? super T, ? extends V> newValueFunction)

Method Detail

valueback to summary
public void value(T object)

Implements org.eclipse.collections.api.block.procedure.Procedure.value.

Annotations
@Override