T - the type of the first argument to the operationU - the type of the second argument to the operationE - the type of exception could be thrown while performing operation@FunctionalInterface
public interface BiConsumerEx<T,U,E extends java.lang.Throwable>
ConsumerEx.
Unlike most other functional interfaces, BiConsumer is expected
to operate via side-effects.
This is a functional interface
whose functional method is accept(Object, Object).
ConsumerEx| Modifier and Type | Method and Description |
|---|---|
void |
accept(T t,
U u)
Performs this operation on the given arguments.
|
default BiConsumerEx<T,U,E> |
andThen(BiConsumerEx<? super T,? super U,E> after)
Returns a composed
BiConsumer that performs, in sequence, this
operation followed by the after operation. |
default <C extends java.lang.Throwable> |
cover(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover) |
default <C extends java.lang.Throwable> |
cover(java.util.function.Function<java.lang.Throwable,java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover) |
default <C extends java.lang.Throwable> |
cover(java.lang.String exceptionText,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover) |
default <C extends java.lang.Throwable> |
cover(java.util.function.Supplier<java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover) |
default ConsumerEx<U,E> |
fixLeft(T t) |
default ConsumerEx<T,E> |
fixRight(U u) |
default java.util.function.BiConsumer<T,U> |
unchecked() |
default java.util.function.BiConsumer<T,U> |
unchecked(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
default java.util.function.BiConsumer<T,U> |
unchecked(java.util.function.Function<java.lang.Throwable,java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
default java.util.function.BiConsumer<T,U> |
unchecked(java.lang.String exceptionText,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
default java.util.function.BiConsumer<T,U> |
unchecked(java.util.function.Supplier<java.lang.String> text,
java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover) |
void accept(T t, U u) throws E extends java.lang.Throwable
t - the first input argumentu - the second input argumentE extends java.lang.Throwabledefault BiConsumerEx<T,U,E> andThen(BiConsumerEx<? super T,? super U,E> after)
BiConsumer 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 operationBiConsumer that performs in sequence this
operation followed by the after operationjava.lang.NullPointerException - if after is nulldefault ConsumerEx<T,E> fixRight(U u)
default ConsumerEx<U,E> fixLeft(T t)
default <C extends java.lang.Throwable> BiConsumerEx<T,U,C> cover(java.lang.String exceptionText, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default <C extends java.lang.Throwable> BiConsumerEx<T,U,C> cover(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default <C extends java.lang.Throwable> BiConsumerEx<T,U,C> cover(java.util.function.Supplier<java.lang.String> text, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default <C extends java.lang.Throwable> BiConsumerEx<T,U,C> cover(java.util.function.Function<java.lang.Throwable,java.lang.String> text, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,C> cover)
default java.util.function.BiConsumer<T,U> unchecked(java.lang.String exceptionText, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)
default java.util.function.BiConsumer<T,U> unchecked(java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)
default java.util.function.BiConsumer<T,U> unchecked(java.util.function.Supplier<java.lang.String> text, java.util.function.BiFunction<java.lang.String,java.lang.Throwable,? extends java.lang.RuntimeException> cover)