FailableShortSupplier

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

A functional interface like IntSupplier but for short that declares a Throwable.

Type parameters:

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

Since:

3.12.0

Methods

short

getAsShort()

Gets an int.

short getAsShort() throws E[source]

Gets an int.

Returns:

A result

Throws:

E – Thrown if the supplier fails.