C - the type of this consumerpublic interface ConsumerChainableConsumer<C extends ConsumerChainableConsumer<C>> extends ConsumerChainable<C>
ConsumerChainable to which the chained consumer is also a
chainable object.ConsumerChainable| Modifier and Type | Method and Description |
|---|---|
default ConsumerChainableConsumer<C> |
andThen(C after)
Returns a chained object that performs, in sequence, this operation followed
by the
after operation. |
ConsumerChainableConsumer<C> |
andThenUnchecked(C after)
Returns a chained object that performs, in sequence, this operation followed
by the
after operation. |
default ConsumerChainableConsumer<C> andThen(C after)
ConsumerChainableafter 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.andThen in interface ConsumerChainable<C extends ConsumerChainableConsumer<C>>after - the operation to perform after this operationafter operationConsumerChainableConsumer<C> andThenUnchecked(C after)
ConsumerChainableafter 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.andThenUnchecked in interface ConsumerChainable<C extends ConsumerChainableConsumer<C>>after - the operation to perform after this operationafter operation