Top Description Methods
org.eclipse.collections.api.block.procedure

public Interface Procedure2<T1, T2>

extends BiConsumer<T1, T2>, Serializable
Annotations
@FunctionalInterface
Imports
java.io.Serializable, java.util.function.BiConsumer

A Procedure2 is used by forEachWith() methods and for MapIterate.forEachKeyValue(). In the forEachKeyValue() case the procedure takes the key as the first argument, and the value as the second. In the forEachWith() case the procedure takes the element of the collection as the first argument, and the specified parameter as the second argument.

Method Summary

Modifier and TypeMethod and Description
public default void
accept(T1 argument1, T2 argument2)

Implements java.util.function.BiConsumer.accept.

Performs this operation on the given arguments.

public void
value(T1 argument1, T2 argument2)

Inherited from java.util.function.BiConsumer:
andThen

Method Detail

acceptback to summary
public default void accept(T1 argument1, T2 argument2)

Implements java.util.function.BiConsumer.accept.

Doc from java.util.function.BiConsumer.accept.

Performs this operation on the given arguments.

Annotations
@Override
valueback to summary
public void value(T1 argument1, T2 argument2)