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

public Interface FailableBiConsumer<T, U, E extends Throwable>

Annotations
@FunctionalInterface
Type Parameters
<T>
Consumed type 1.
<U>
Consumed type 2.
<E>
The kind of thrown exception or error.
Imports
java.util.Objects, java.util.function.BiConsumer

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

Field Summary

Modifier and TypeField and Description
public static final FailableBiConsumer<T, U, E extends Throwable>
NOP

NOP singleton

Method Summary

Modifier and TypeMethod and Description
public void
accept(T
the first parameter for the consumable to accept
t
,
U
the second parameter for the consumable to accept
u
)

Accepts the given arguments.

public default FailableBiConsumer<T, U, E>
andThen(final FailableBiConsumer<? super T, ? super U, E>
the operation to perform after this one.
after
)

Returns a composed FailableBiConsumer like BiConsumer#andThen(BiConsumer).

public static <
Consumed type 1.
T
,
Consumed type 2.
U
,
The kind of thrown exception or error.
E extends Throwable
>
FailableBiConsumer<T, U, E>

Returns:

The NOP singleton.
nop
()

Gets the NOP singleton.

Field Detail

NOPback to summary
public static final FailableBiConsumer<T, U, E extends Throwable> NOP

NOP singleton

Annotations
@SuppressWarnings:rawtypes

Method Detail

acceptback to summary
public void accept(T t, U u) throws E

Accepts the given arguments.

Parameters
t:T

the first parameter for the consumable to accept

u:U

the second parameter for the consumable to accept

Exceptions
E:
Thrown when the consumer fails.
andThenback to summary
public default FailableBiConsumer<T, U, E> andThen(final FailableBiConsumer<? super T, ? super U, E> after)

Returns a composed FailableBiConsumer like BiConsumer#andThen(BiConsumer).

Parameters
after:FailableBiConsumer<? super T, ? super U, E>

the operation to perform after this one.

Returns:FailableBiConsumer<T, U, E>

a composed FailableBiConsumer like BiConsumer#andThen(BiConsumer).

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

Gets the NOP singleton.

Parameters
<T>
Consumed type 1.
<U>
Consumed type 2.
<E>
The kind of thrown exception or error.
Returns:FailableBiConsumer<T, U, E>

The NOP singleton.

Annotations
@SuppressWarnings:unchecked