FailableByteSupplier

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

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

Parameters:

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

Since:

3.19

Methods

getAsByte()

Gets a byte.

public abstract byte getAsByte() throws E[source]

Gets a byte.

Returns:

A result

Throws:

E – Thrown if the supplier fails.