T - the original type of the input to the chainable objectpublic interface InputChainable<T>
| Modifier and Type | Method and Description |
|---|---|
default <V> java.lang.Object |
compose(Function1<? super V,? extends T> before)
Returns a chained object that applies the
before function to its
input, and then applies this chainable object to the result. |
<V> java.lang.Object |
composeUnchecked(Function1<? super V,? extends T> before)
Returns a chained object that applies the
before function to its
input, and then applies this chainable object to the result. |
default <V> java.lang.Object compose(Function1<? super V,? extends T> before)
before function to its
input, and then applies this chainable object to the result. If evaluation
of either throws an exception, it is relayed to the caller of the chained
object.V - the type of the input to the before function, and to
then chained objectbefore - the function to apply before this chainable object is appliedbefore function
and then applies this chainable objectjava.lang.NullPointerException - if before is null<V> java.lang.Object composeUnchecked(Function1<? super V,? extends T> before)
before function to its
input, and then applies this chainable object to the 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 input to the before function, and to
then chained objectbefore - the function to apply before this chainable object is appliedbefore function
and then applies this chainable objectjava.lang.NullPointerException - if before is null