FailableDoubleToIntFunction

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

A functional interface like DoubleToIntFunction that declares a Throwable.

Type parameters:

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

Since:

3.11

Fields and constants

static final FailableDoubleToIntFunction

NOP

NOP singleton

static final FailableDoubleToIntFunction NOP[source]

NOP singleton

Methods

int

applyAsInt(double value)

Applies this function to the given argument.

static <E extends Throwable> FailableDoubleToIntFunction<E>

nop()

Gets the NOP singleton.

int applyAsInt(double value) throws E[source]

Applies this function to the given argument.

Parameters:

value – The function argument

Returns:

The function result

Throws:

E – Thrown when the function fails.

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

Gets the NOP singleton.

Type parameters:

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

Returns:

The NOP singleton.