Top Description Methods
org.jooq.lambda.function

public Interface Function2<T1, T2, R>

extends BiFunction<T1, T2, R>
Annotations
@FunctionalInterface
Imports
java.util.function.BiFunction, org.jooq.lambda.tuple.Tuple1, .Tuple2

A function with 2 arguments.
Author
Lukas Eder

Method Summary

Modifier and TypeMethod and Description
public default R
apply(Tuple2<? extends T1, ? extends T2>
The arguments as a tuple.
args
)

Apply this function to the arguments.

public R
apply(T1 v1, T2 v2)

Redeclares java.util.function.BiFunction.apply.

Apply this function to the arguments.

public default Function1<T2, R>
applyPartially(T1 v1)

Partially apply this function to the arguments.

public default Function0<R>
applyPartially(T1 v1, T2 v2)

Partially apply this function to the arguments.

public default Function1<T2, R>
applyPartially(Tuple1<? extends T1> args)

Partially apply this function to the arguments.

public default Function0<R>
applyPartially(Tuple2<? extends T1, ? extends T2> args)

Partially apply this function to the arguments.

public default Function1<T2, R>
curry(T1 v1)
Deprecated - Use applyPartially(Object) instead.

Partially apply this function to the arguments.

public default Function0<R>
curry(T1 v1, T2 v2)
Deprecated - Use applyPartially(Object, Object) instead.

Partially apply this function to the arguments.

public default Function1<T2, R>
curry(Tuple1<? extends T1> args)
Deprecated - Use applyPartially(Tuple1) instead.

Partially apply this function to the arguments.

public default Function0<R>
curry(Tuple2<? extends T1, ? extends T2> args)
Deprecated - Use applyPartially(Tuple2) instead.

Partially apply this function to the arguments.

public static <T1, T2, R> Function2<T1, T2, R>
from(BiFunction<? super T1, ? super T2, ? extends R> function)

Convert to this function to a java.util.function.BiFunction.

public default BiFunction<T1, T2, R>
toBiFunction()

Convert this function to a java.util.function.BiFunction.

Inherited from java.util.function.BiFunction:
andThen

Method Detail

applyback to summary
public default R apply(Tuple2<? extends T1, ? extends T2> args)

Apply this function to the arguments.

Parameters
args:Tuple2<? extends T1, ? extends T2>

The arguments as a tuple.

applyback to summary
public R apply(T1 v1, T2 v2)

Redeclares java.util.function.BiFunction.apply.

Apply this function to the arguments.

Annotations
@Override
applyPartiallyback to summary
public default Function1<T2, R> applyPartially(T1 v1)

Partially apply this function to the arguments.

applyPartiallyback to summary
public default Function0<R> applyPartially(T1 v1, T2 v2)

Partially apply this function to the arguments.

applyPartiallyback to summary
public default Function1<T2, R> applyPartially(Tuple1<? extends T1> args)

Partially apply this function to the arguments.

applyPartiallyback to summary
public default Function0<R> applyPartially(Tuple2<? extends T1, ? extends T2> args)

Partially apply this function to the arguments.

curryback to summary
public default Function1<T2, R> curry(T1 v1)

Deprecated

- Use applyPartially(Object) instead.

Partially apply this function to the arguments.

Annotations
@Deprecated
curryback to summary
public default Function0<R> curry(T1 v1, T2 v2)

Deprecated

- Use applyPartially(Object, Object) instead.

Partially apply this function to the arguments.

Annotations
@Deprecated
curryback to summary
public default Function1<T2, R> curry(Tuple1<? extends T1> args)

Deprecated

- Use applyPartially(Tuple1) instead.

Partially apply this function to the arguments.

Annotations
@Deprecated
curryback to summary
public default Function0<R> curry(Tuple2<? extends T1, ? extends T2> args)

Deprecated

- Use applyPartially(Tuple2) instead.

Partially apply this function to the arguments.

Annotations
@Deprecated
fromback to summary
public static <T1, T2, R> Function2<T1, T2, R> from(BiFunction<? super T1, ? super T2, ? extends R> function)

Convert to this function to a java.util.function.BiFunction.

toBiFunctionback to summary
public default BiFunction<T1, T2, R> toBiFunction()

Convert this function to a java.util.function.BiFunction.