Class MapEntryToProcedure2<K,V>
- java.lang.Object
-
- org.eclipse.collections.impl.block.procedure.MapEntryToProcedure2<K,V>
-
- All Implemented Interfaces:
java.io.Serializable
,java.util.function.Consumer<java.util.Map.Entry<K,V>>
,Procedure<java.util.Map.Entry<K,V>>
public final class MapEntryToProcedure2<K,V> extends java.lang.Object implements Procedure<java.util.Map.Entry<K,V>>
MapEntryToProcedure2 translates the result of calling entrySet() on a Map, which results in a collection of Map.Entry objects into corresponding Procedure2s. This removes the need to deal with Map.Entry when iterating over an entrySet.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private Procedure2<? super K,? super V>
procedure
private static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description MapEntryToProcedure2(Procedure2<? super K,? super V> procedure)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
value(java.util.Map.Entry<K,V> entry)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
procedure
private final Procedure2<? super K,? super V> procedure
-
-
Constructor Detail
-
MapEntryToProcedure2
public MapEntryToProcedure2(Procedure2<? super K,? super V> procedure)
-
-