public final class LongConsumers extends Object
LongConsumer interface.| Modifier and Type | Method and Description |
|---|---|
static LongConsumer |
andThen(LongConsumer this_,
LongConsumer after)
Returns a composed
LongConsumer that performs, in sequence, the this_
operation followed by the after operation. |
public static LongConsumer andThen(LongConsumer this_, LongConsumer after)
LongConsumer 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.this_ - the operation to perform before the after operationafter - the operation to perform after the this_ operationLongConsumer that performs in sequence the this_
operation followed by the after operationNullPointerException - if this_ is nullNullPointerException - if after is nullCopyright © 2016. All rights reserved.