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

public Interface Function2<T1, T2, R>

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

Function2 is a two argument lambda which takes two arguments and returns a result of a transformation. A Function2 is used by RichIterable.injectInto() and RichIterable.collectWith() methods. See documentation of these methods for more details.
Since
1.0
See Also
org.eclipse.collections.api.RichIterable#injectInto, org.eclipse.collections.api.RichIterable#collectWith

Method Summary

Modifier and TypeMethod and Description
public default R
apply(T1 argument1, T2 argument2)

Implements java.util.function.BiFunction.apply.

Applies this function to the given arguments.

public R
value(T1 argument1, T2 argument2)

Inherited from java.util.function.BiFunction:
andThen

Method Detail

applyback to summary
public default R apply(T1 argument1, T2 argument2)

Implements java.util.function.BiFunction.apply.

Doc from java.util.function.BiFunction.apply.

Applies this function to the given arguments.

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