Top Description Methods
io.smallrye.common.function

public Interface ExceptionBiConsumer<T, U, E extends Exception>

Known Direct Implementers
io.smallrye.common.function.Functions.ExceptionConsumerBiConsumer, io.smallrye.common.function.Functions.ConsumerExceptionBiConsumer, io.smallrye.common.function.Functions.DiscardingBiConsumer
Annotations
@FunctionalInterface
Type Parameters
<T>
the first argument type
<U>
the second argument type
<E>
the exception type
Imports
io.smallrye.common.constraint.Assert

A two-argument consumer which can throw an exception.

Method Summary

Modifier and TypeMethod and Description
public void
accept(T
the first argument
t
,
U
the second argument
u
)

Performs this operation on the given arguments.

public default ExceptionBiConsumer<T, U, E>

Returns:

a consumer which passes the arguments to this consumer followed by the given consumer
andThen
(ExceptionBiConsumer<? super T, ? super U, ? extends E>
the next consumer (must not be null)
after
)

Returns a consumer which passes the arguments to this consumer followed by the given consumer.

public default ExceptionRunnable<E>

Returns:

a runnable which passes the results of the given suppliers through this consumer
compose
(ExceptionSupplier<? extends T, ? extends E>
the supplier for the first argument (must not be null)
before1
,
ExceptionSupplier<? extends U, ? extends E>
the supplier for the second argument (must not be null)
before2
)

Returns a runnable which passes the results of the given suppliers through this consumer.

Method Detail

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

Performs this operation on the given arguments.

Parameters
t:T

the first argument

u:U

the second argument

Exceptions
ExceptionPredicate:E:
if an exception occurs
andThenback to summary
public default ExceptionBiConsumer<T, U, E> andThen(ExceptionBiConsumer<? super T, ? super U, ? extends E> after)

Returns a consumer which passes the arguments to this consumer followed by the given consumer.

Parameters
after:ExceptionBiConsumer<? super T, ? super U, ? extends E>

the next consumer (must not be null)

Returns:ExceptionBiConsumer<T, U, E>

a consumer which passes the arguments to this consumer followed by the given consumer

composeback to summary
public default ExceptionRunnable<E> compose(ExceptionSupplier<? extends T, ? extends E> before1, ExceptionSupplier<? extends U, ? extends E> before2)

Returns a runnable which passes the results of the given suppliers through this consumer.

Parameters
before1:ExceptionSupplier<? extends T, ? extends E>

the supplier for the first argument (must not be null)

before2:ExceptionSupplier<? extends U, ? extends E>

the supplier for the second argument (must not be null)

Returns:ExceptionRunnable<E>

a runnable which passes the results of the given suppliers through this consumer