| Modifier and Type | Method and Description |
|---|---|
DecorPair<T> |
apply(T type)
Applies this
Behaviour to the given type T. |
Behaviour<T> |
merge(Behaviour<T> other)
|
static <T> Behaviour<T> |
newBehaviour() |
static <T> Behaviour<T> |
newBehaviour(Function<Behaviour<T>,Behaviour<T>> function) |
Behaviour<T> |
with(Function<T,T> function)
Adds a
Function that accepts and returns a specific type T. |
Behaviour<T> |
withUnapply(Function<T,Unappliable> function)
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmergeAll, mergeAll, withAll, withAll, withUnapplyAll, withUnapplyAllpublic static <T> Behaviour<T> newBehaviour(Function<Behaviour<T>,Behaviour<T>> function)
public static <T> Behaviour<T> newBehaviour()
public final Behaviour<T> withUnapply(Function<T,Unappliable> function)
BehaviourFunction that accepts a specific type T and returns an Unappliable.
T is passed from the last Function with a return type T.withUnapply in interface Behaviour<T>function - Function that accepts the specific type T and returns an UnappliableBehaviour with added Functionpublic final Behaviour<T> with(Function<T,T> function)
Behaviourpublic final Behaviour<T> merge(Behaviour<T> other)
Behaviour