FailableDoubleToLongFunction

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

A functional interface like DoubleToLongFunction that declares a Throwable.

Type parameters:

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

Since:

3.11

Fields and constants

static final FailableDoubleToLongFunction

NOP

NOP singleton

static final FailableDoubleToLongFunction NOP[source]

NOP singleton

Methods

int

applyAsLong(double value)

Applies this function to the given argument.

static <E extends Throwable> FailableDoubleToLongFunction<E>

nop()

Gets the NOP singleton.

int applyAsLong(double value) throws E[source]

Applies this function to the given argument.

Parameters:

value – The function argument

Returns:

The function result

Throws:

E – Thrown if the operation fails.

static <E extends Throwable> FailableDoubleToLongFunction<E> nop()[source]

Gets the NOP singleton.

Type parameters:

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

Returns:

The NOP singleton.