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

public final Class MapEntryToProcedure2<K, V>

extends Object
implements Procedure<Map.Entry<K, V>>
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.procedure.Procedure, .Procedure2

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.

Field Summary

Modifier and TypeField and Description
private final Procedure2<? super K, ? super V>
private static final long

Constructor Summary

AccessConstructor and Description
public
MapEntryToProcedure2(Procedure2<? super K, ? super V> procedure)

Method Summary

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

Field Detail

procedureback to summary
private final Procedure2<? super K, ? super V> procedure
serialVersionUIDback to summary
private static final long serialVersionUID

Constructor Detail

MapEntryToProcedure2back to summary
public MapEntryToProcedure2(Procedure2<? super K, ? super V> procedure)

Method Detail

valueback to summary
public void value(Map.Entry<K, V> entry)

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

Annotations
@Override