| Modifier and Type | Method and Description |
|---|---|
static <T> Consumer<T> |
andThen(Consumer<? super T> this_,
Consumer<? super T> after)
Returns a composed
Consumer that performs, in sequence, the this_
operation followed by the after operation. |
public static <T> Consumer<T> andThen(Consumer<? super T> this_, Consumer<? super T> after)
Consumer that performs, in sequence, the 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 input to the operationsthis_ - the operation to perform before the after operationafter - the operation to perform after the this_ operationConsumer that performs in sequence the this_
operation followed by the after operationNullPointerException - if this_ is nullNullPointerException - if after is nullCopyright © 2016. All rights reserved.