On this page

FailableLongSupplier

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

A functional interface like LongSupplier that declares a Throwable.

Parameters:

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

Since:

3.11

Methods

getAsLong()

Gets a long.

public abstract long getAsLong() throws E[source]

Gets a long.

Returns:

A result

Throws:

E – Thrown if the supplier fails.