FailableDoubleConsumer

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

A functional interface like DoubleConsumer that declares a Throwable.

Type parameters:

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

Since:

3.11

Fields and constants

static final FailableDoubleConsumer

NOP

NOP singleton

static final FailableDoubleConsumer NOP[source]

NOP singleton

Methods

void

accept(double value)

Accepts the given arguments.

default FailableDoubleConsumer<E>

andThen(FailableDoubleConsumer<E> after)

Returns a composed FailableDoubleConsumer like DoubleConsumer.andThen(DoubleConsumer).

static <E extends Throwable> FailableDoubleConsumer<E>

nop()

Gets the NOP singleton.

void accept(double value) throws E[source]

Accepts the given arguments.

Parameters:

value – The parameter for the consumable to accept

Throws:

E – Thrown when the consumer fails.

default FailableDoubleConsumer<E> andThen(FailableDoubleConsumer<E> after)[source]

Returns a composed FailableDoubleConsumer like DoubleConsumer.andThen(DoubleConsumer).

Parameters:

after – The operation to perform after this one.

Returns:

A composed FailableDoubleConsumer like DoubleConsumer.andThen(DoubleConsumer).

Throws:

NullPointerException – Thrown when after is null.

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

Gets the NOP singleton.

Type parameters:

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

Returns:

The NOP singleton.