On this page

Functions.FailableSupplier

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

A functional interface like Supplier that declares a Throwable.

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

Parameters:
  • <R> – Return type.

  • <T> – Thrown exception.

Methods

get()

Gets an object.

public abstract R get() throws T[source]

Gets an object.

Returns:

A result

Throws:

T – Thrown if the supplier fails.