public final class IntConsumers extends Object
IntConsumer
interface.Modifier and Type | Method and Description |
---|---|
static IntConsumer |
andThen(IntConsumer this_,
IntConsumer after)
Returns a composed
IntConsumer that performs, in sequence, the this_
operation followed by the after operation. |
public static IntConsumer andThen(IntConsumer this_, IntConsumer after)
IntConsumer
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_
operationIntConsumer
that performs in sequence the this_
operation followed by the after
operationNullPointerException
- if this_
is nullNullPointerException
- if after
is nullCopyright © 2015. All rights reserved.