public final class BiConsumers extends Object
BiConsumer interface.| Modifier and Type | Method and Description |
|---|---|
static <T,U> BiConsumer<T,U> |
andThen(BiConsumer<? super T,? super U> this_,
BiConsumer<? super T,? super U> after)
Returns a composed
BiConsumer that performs, in sequence, this_
operation followed by the after operation. |
public static <T,U> BiConsumer<T,U> andThen(BiConsumer<? super T,? super U> this_, BiConsumer<? super T,? super U> 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 the this_ operation throws an exception,
the after operation will not be performed.T - the type of the first argument to the BiConsumer operationU - the type of the second argument to the BiConsumer operationthis_ - the operation to perform before the after operationafter - the operation to perform after the this_ operationBiConsumer that performs in sequence the this_
operation followed by the after operationNullPointerException - if this_ is nullNullPointerException - if after is nullCopyright © 2015. All rights reserved.