@FunctionalInterface public interface SerializableConsumer<T> extends Consumer<T>, Serializable
Consumer| Modifier and Type | Method and Description |
|---|---|
default SerializableConsumer<T> |
andThen(SerializableConsumer<? super T> after)
Returns a composed
SerializableConsumer that performs, in sequence,
this operation followed by the after operation. |
default SerializableConsumer<T> andThen(SerializableConsumer<? super T> after)
SerializableConsumer that performs, in sequence,
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 this operation throws an exception,
the after operation will not be performed.after - the operation to perform after this operationSerializableConsumer that performs in sequence
this operation followed by the after operationNullPointerException - if after is nullCopyright © 2019. All rights reserved.