T - the type of the first argument to the operationU - the type of the second argument to the operation@FunctionalInterface public interface UncheckedBiConsumer<T,U>
UncheckedConsumer.
The operation can throw Exceptions.
| Modifier and Type | Method and Description |
|---|---|
void |
accept(T t,
U u)
Performs this operation on the given arguments.
|
default UncheckedBiConsumer<T,U> |
andThen(UncheckedBiConsumer<? super T,? super U> after)
Returns a composed
UncheckedBiConsumer that performs, in sequence, this
operation followed by the after operation. |
static <T,U> UncheckedBiConsumer<T,U> |
from(BiConsumer<T,U> consumer)
Creates a
UncheckedBiConsumer from an existing BiConsumer |
default BiConsumer<T,U> |
toBiConsumer() |
static <T,U> UncheckedBiConsumer<T,U> from(BiConsumer<T,U> consumer)
UncheckedBiConsumer from an existing BiConsumerT - the type of the first argument to the operationU - the type of the second argument to the operationconsumer - the consumerUncheckedBiConsumervoid accept(T t, U u) throws Exception
t - the first input argumentu - the second input argumentException - if something bad happen during the executiondefault UncheckedBiConsumer<T,U> andThen(UncheckedBiConsumer<? super T,? super U> after)
UncheckedBiConsumer that performs, in sequence, this
operation followed by the after operation. If performing either
operation throws an exception, it is relayed to the caller of the
composed operation. If performing this operation throws an exception,
the after operation will not be performed.after - the operation to perform after this operationUncheckedBiConsumer that performs in sequence this
operation followed by the after operationNullPointerException - if after is nulldefault BiConsumer<T,U> toBiConsumer()
BiConsumer associated with this UncheckedBiConsumer. If the operation throws an
exception, the exception is rethrown, wrapped in a RuntimeException if needed.Copyright © 2019–2020 SmallRye. All rights reserved.