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