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

public Interface FailableIntConsumer<E extends Throwable>

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

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

Field Summary

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

NOP singleton

Method Summary

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

Accepts the given arguments.

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

Returns a composed FailableIntConsumer like IntConsumer#andThen(IntConsumer).

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

Returns:

The NOP singleton.
nop
()

Gets the NOP singleton.

Field Detail

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

NOP singleton

Annotations
@SuppressWarnings:rawtypes

Method Detail

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

Accepts the given arguments.

Parameters
value:int

the parameter for the consumable to accept

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

Returns a composed FailableIntConsumer like IntConsumer#andThen(IntConsumer).

Parameters
after:FailableIntConsumer<E>

the operation to perform after this one.

Returns:FailableIntConsumer<E>

a composed FailableIntConsumer like IntConsumer#andThen(IntConsumer).

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

Gets the NOP singleton.

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

The NOP singleton.

Annotations
@SuppressWarnings:unchecked