On this page

Functions.FailableBiFunction

@Deprecated @FunctionalInterface public static interface org.apache.commons.lang3.Functions.FailableBiFunction<O1, O2, R, T extends Throwable>[source]

Deprecated: Use FailableBiFunction.

A functional interface like BiFunction that declares a Throwable.

TODO for 4.0: Move to org.apache.commons.lang3.function.

Type parameters:
  • <O1> – Input type 1.

  • <O2> – Input type 2.

  • <R> – Return type.

  • <T> – Thrown exception.

Methods

R

apply(O1 input1, O2 input2)

Applies this function.

R apply(O1 input1, O2 input2) throws T[source]

Applies this function.

Parameters:
  • input1 – The first input for the function

  • input2 – The second input for the function

Returns:

The result of the function

Throws:

T – Thrown when the function fails.