R - the original type of the result of the chainable objectpublic interface ResultChainable<R>
| Modifier and Type | Method and Description |
|---|---|
default <V> java.lang.Object |
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> java.lang.Object |
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> java.lang.Object andThen(Function1<? super R,? extends V> after)
after function to ths result. If evaluation of either
throws an exception, it is relayed to the caller of the chained object.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 functionjava.lang.NullPointerException - if after is null<V> java.lang.Object andThenUnchecked(Function1<? super R,? extends V> after)
after 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.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