C - the type of this consumerpublic interface ConsumerChainable<C extends ConsumerChainable<C>>
| Modifier and Type | Method and Description |
|---|---|
default java.lang.Object |
andThen(C after)
Returns a chained object that performs, in sequence, this operation followed
by the
after operation. |
java.lang.Object |
andThenUnchecked(C after)
Returns a chained object that performs, in sequence, this operation followed
by the
after operation. |
default java.lang.Object andThen(C after)
after operation. If performing either operation throws an
exception, it is relayed to the caller of the composed operation. If performing
this operation throws an exception, the after operation will not be
performed.after - the operation to perform after this operationafter operationjava.lang.NullPointerException - if after is nulljava.lang.Object andThenUnchecked(C after)
after operation. If performing either operation throws an
exception, it is relayed to the caller of the composed operation. If performing
this operation throws an exception, the after operation will not be
performed. This makes no assumptions on the arguments of this method.after - the operation to perform after this operationafter operationjava.lang.NullPointerException - if after is null