T - type for this behaviourpublic interface LambdaDecor<T>
Behaviour type with a specific type T.| Modifier and Type | Method and Description |
|---|---|
T |
apply(T type)
Applies this
Behaviour to the given type T. |
void |
unapply()
Performs the specific
Unappliable operation of this Behaviour. |
void |
updateBehaviour(Function<Behaviour<T>,Behaviour<T>> behaviour)
Updates the held
Behaviour. |
void updateBehaviour(Function<Behaviour<T>,Behaviour<T>> behaviour)
Behaviour.behaviour - Function that provides the currently hold Behaviour and returns the updated BehaviourNullPointerException - if the behaviour is null or the return value if the Function is nullT apply(T type)
Behaviour to the given type T.type - specific type TT object after applying all Behavioursvoid unapply()
Unappliable operation of this Behaviour.