@FunctionalInterface public interface SerializableRunnable extends Runnable, Serializable
Runnable.| Modifier and Type | Method and Description |
|---|---|
default SerializableRunnable |
andThen(SerializableRunnable next)
Returns a composed
SerializableRunnable that performs, in sequence,
this operation followed by the next operation. |
default SerializableRunnable andThen(SerializableRunnable next)
SerializableRunnable that performs, in sequence,
this operation followed by the next 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.next - the operation to perform after this operationSerializableRunnable that performs in sequence
this operation followed by the next operationNullPointerException - if next is nullCopyright © 2019. All rights reserved.