Functions.FailableBiFunction

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

A functional interface like BiFunction that declares a Throwable.

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

Parameters:
  • <O1> – Input type 1.

  • <O2> – Input type 2.

  • <R> – Return type.

  • <T> – Thrown exception.

Methods

apply(Object, Object)

Applies this function.

public abstract 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.