R - the original type of the result of the chainable objectpublic interface ResultChainableResult<R> extends ResultChainable<R>
ResultChainable to which the chained result is also a
chainable object.ResultChainable| Modifier and Type | Method and Description |
|---|---|
default <V> ResultChainableResult<V> |
andThen(Function1<? super R,? extends V> after)
Returns a chained object that applies this chainable object, and then
applies the
after function to ths result. |
<V> ResultChainableResult<V> |
andThenUnchecked(Function1<? super R,? extends V> after)
Returns a chained object that applies this chainable object, and then
applies the
after function to ths result. |
default <V> ResultChainableResult<V> andThen(Function1<? super R,? extends V> after)
ResultChainableafter function to ths result. If evaluation of either
throws an exception, it is relayed to the caller of the chained object.andThen in interface ResultChainable<R>V - the type of the output of the after function, and of
the chained objectafter - the function to apply after this chainable object is appliedafter function<V> ResultChainableResult<V> andThenUnchecked(Function1<? super R,? extends V> after)
ResultChainableafter function to ths result. If evaluation of either
throws an exception, it is relayed to the caller of the chained object.
This makes no assumptions on the arguments of this method.andThenUnchecked in interface ResultChainable<R>V - the type of the output of the after function, and of
the chained objectafter - the function to apply after this chainable object is appliedafter function