T - public interface Functor<T>
| Modifier and Type | Method and Description |
|---|---|
default java.lang.Object |
getFunctor()
Override this method if you are using this class to wrap a Functor that does not
implement this interface natively.
|
default <R> Functor<R> |
map(java.util.function.Function<? super T,? extends R> fn) |
default Functor<T> |
peek(java.util.function.Consumer<? super T> c) |
default <X> X |
unwrap() |
default <T> Functor<T> |
withFunctor(T functor)
Will attempt to create a new instance of this functor type via constructor reflection
if this is a wrapped Functor (i.e.
|
default <T> Functor<T> withFunctor(T functor)
functor - default java.lang.Object getFunctor()
default <X> X unwrap()