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

public Interface FailableLongConsumer<E extends Throwable>

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

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

Field Summary

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

NOP singleton

Method Summary

Modifier and TypeMethod and Description
public void
accept(long
the parameter for the consumable to accept
object
)

Accepts the given arguments.

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

Returns a composed FailableLongConsumer like LongConsumer#andThen(LongConsumer).

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

Returns:

The NOP singleton.
nop
()

Gets the NOP singleton.

Field Detail

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

NOP singleton

Annotations
@SuppressWarnings:rawtypes

Method Detail

acceptback to summary
public void accept(long object) throws E

Accepts the given arguments.

Parameters
object:long

the parameter for the consumable to accept

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

Returns a composed FailableLongConsumer like LongConsumer#andThen(LongConsumer).

Parameters
after:FailableLongConsumer<E>

the operation to perform after this one.

Returns:FailableLongConsumer<E>

a composed FailableLongConsumer like LongConsumer#andThen(LongConsumer).

Exceptions
NullPointerException:
if after is null
nopback to summary
public static <E extends Throwable> FailableLongConsumer<E> nop()

Gets the NOP singleton.

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

The NOP singleton.

Annotations
@SuppressWarnings:unchecked