Class MultimapPutProcedure<K,V>
java.lang.Object
org.eclipse.collections.impl.block.procedure.MultimapPutProcedure<K,V>
- All Implemented Interfaces:
Serializable
,Consumer<V>
,Procedure<V>
public final class MultimapPutProcedure<K,V> extends Object implements Procedure<V>
MultimapPutProcedure uses an Function to calculate the key for an object and puts the object with the key
into the specified
MutableMultimap
.- See Also:
- Serialized Form
-
Constructor Summary
Constructors Constructor Description MultimapPutProcedure(MutableMultimap<K,V> multimap, Function<? super V,? extends K> keyFunction)
-
Method Summary
Modifier and Type Method Description static <K, V> MultimapPutProcedure<K,V>
on(MutableMultimap<K,V> multimap, Function<? super V,? extends K> keyFunction)
void
value(V each)
-
Constructor Details
-
Method Details
-
on
public static <K, V> MultimapPutProcedure<K,V> on(MutableMultimap<K,V> multimap, Function<? super V,? extends K> keyFunction) -
value
-