Top Description Fields Methods
org.apache.commons.lang3.function

public Interface FailableDoubleConsumer<E extends Throwable>

Annotations
@FunctionalInterface
Type Parameters
<E>
The kind of thrown exception or error.
Imports
java.util.Objects, java.util.function.DoubleConsumer

A functional interface like DoubleConsumer that declares a Throwable.
Since
3.11

Field Summary

Modifier and TypeField and Description
public static final FailableDoubleConsumer<E extends Throwable>
NOP

NOP singleton

Method Summary

Modifier and TypeMethod and Description
public void
accept(double
the parameter for the consumable to accept
value
)

Accepts the given arguments.

public default FailableDoubleConsumer<E>
andThen(final FailableDoubleConsumer<E>
the operation to perform after this one.
after
)

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

public static <
The kind of thrown exception or error.
E extends Throwable
>
FailableDoubleConsumer<E>

Returns:

The NOP singleton.
nop
()

Gets the NOP singleton.

Field Detail

NOPback to summary
public static final FailableDoubleConsumer<E extends Throwable> NOP

NOP singleton

Annotations
@SuppressWarnings:rawtypes

Method Detail

acceptback to summary
public void accept(double value) throws E

Accepts the given arguments.

Parameters
value:double

the parameter for the consumable to accept

Exceptions
E:
Thrown when the consumer fails.
andThenback to summary
public default FailableDoubleConsumer<E> andThen(final FailableDoubleConsumer<E> after)

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

Parameters
after:FailableDoubleConsumer<E>

the operation to perform after this one.

Returns:FailableDoubleConsumer<E>

a composed FailableDoubleConsumer like DoubleConsumer#andThen(DoubleConsumer).

Exceptions
NullPointerException:
when after is null.
nopback to summary
public static <E extends Throwable> FailableDoubleConsumer<E> nop()

Gets the NOP singleton.

Parameters
<E>
The kind of thrown exception or error.
Returns:FailableDoubleConsumer<E>

The NOP singleton.

Annotations
@SuppressWarnings:unchecked