Functions.FailableCallable

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

A functional interface like java.util.concurrent.Callable that declares a Throwable.

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

Parameters:
  • <R> – Return type.

  • <T> – Thrown exception.

Methods

call()

Calls the callable.

public abstract R call() throws T[source]

Calls the callable.

Returns:

The value returned from the callable

Throws:

T – Thrown if the callable fails.