On this page

Functions.FailableSupplier

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

Deprecated: Use FailableSupplier.

A functional interface like Supplier that declares a Throwable.

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

Type parameters:
  • <R> – Return type.

  • <T> – Thrown exception.

Methods

R

get()

Gets an object.

R get() throws T[source]

Gets an object.

Returns:

A result

Throws:

T – Thrown if the supplier fails.