T - the type of the first argument to the operationU - the type of the second argument to the operation@FunctionalInterface
public interface FragileBiConsumer<T,U>
BiConsumer which can throw a Throwable| Modifier and Type | Method and Description |
|---|---|
void |
accept(T t,
U u)
Performs this operation on the given arguments.
|
default FragileBiConsumer<T,U> |
andThen(FragileBiConsumer<? super T,? super U> after)
Returns a composed
FragileBiConsumer that performs, in sequence, this
operation followed by the after operation. |
void accept(T t, U u) throws java.lang.Throwable
t - the first input argumentu - the second input argumentjava.lang.Throwable - if there is some error or exceptiondefault FragileBiConsumer<T,U> andThen(FragileBiConsumer<? super T,? super U> after)
FragileBiConsumer 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 operationFragileBiConsumer that performs in sequence this
operation followed by the after operationjava.lang.NullPointerException - if after is nulljava.lang.Throwable - if there is some error or exception on accept