Functions.FailableFunction

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

Deprecated: Use FailableFunction.

A functional interface like Function that declares a Throwable.

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

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

  • <R> – Return type.

  • <T> – Thrown exception.

Methods

R

apply(I input)

Applies this function.

R apply(I input) throws T[source]

Applies this function.

Parameters:

input – The input for the function

Returns:

The result of the function

Throws:

T – Thrown when the function fails.