On this page

Functions.FailableFunction

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

A functional interface like Function that declares a Throwable.

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

Parameters:
  • <I> – Input type 1.

  • <R> – Return type.

  • <T> – Thrown exception.

Methods

apply(Object)

Applies this function.

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