On this page

FailableIntSupplier

@FunctionalInterface public interface org.apache.commons.lang3.function.FailableIntSupplier<E extends Throwable>[source]

A functional interface like IntSupplier that declares a Throwable.

Type parameters:

<E> – The kind of thrown exception or error.

Since:

3.11

Methods

int

getAsInt()

Gets an int.

int getAsInt() throws E[source]

Gets an int.

Returns:

A result

Throws:

E – Thrown if the supplier fails.