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