Class MultimapEachPutProcedure<K,V>
- java.lang.Object
-
- org.eclipse.collections.impl.block.procedure.MultimapEachPutProcedure<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.function.Consumer<V>
,Procedure<V>
public final class MultimapEachPutProcedure<K,V> extends java.lang.Object implements Procedure<V>
MultimapEachPutProcedure uses a Function to calculate the keys for an object and puts the object with each of the keys into the specifiedMutableMultimap
.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Function<? super V,? extends java.lang.Iterable<K>>
keyFunction
private MutableMultimap<K,V>
multimap
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description MultimapEachPutProcedure(MutableMultimap<K,V> multimap, Function<? super V,? extends java.lang.Iterable<K>> keyFunction)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <K,V>
MultimapEachPutProcedure<K,V>on(MutableMultimap<K,V> multimap, Function<? super V,? extends java.lang.Iterable<K>> keyFunction)
void
value(V each)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
multimap
private final MutableMultimap<K,V> multimap
-
-
Method Detail
-
on
public static <K,V> MultimapEachPutProcedure<K,V> on(MutableMultimap<K,V> multimap, Function<? super V,? extends java.lang.Iterable<K>> keyFunction)
-
-