public class DefaultLambdaDecor<T> extends Object implements LambdaDecor<T>
| Modifier and Type | Method and Description |
|---|---|
T |
apply(T type)
Applies this
Behaviour to the given type T. |
static <T> LambdaDecor<T> |
create() |
static <T> LambdaDecor<T> |
create(Behaviour<T> behaviour) |
void |
unapply()
Performs the specific
Unappliable operation of this Behaviour. |
void |
updateBehaviour(Function<Behaviour<T>,Behaviour<T>> behaviourFunction)
Updates the held
Behaviour. |
public static <T> LambdaDecor<T> create(Behaviour<T> behaviour)
public static <T> LambdaDecor<T> create()
public void updateBehaviour(Function<Behaviour<T>,Behaviour<T>> behaviourFunction)
LambdaDecorBehaviour.updateBehaviour in interface LambdaDecor<T>behaviourFunction - Function that provides the currently hold Behaviour and returns the updated Behaviourpublic T apply(T type)
LambdaDecorBehaviour to the given type T.apply in interface LambdaDecor<T>type - specific type TT object after applying all Behaviourspublic void unapply()
LambdaDecorUnappliable operation of this Behaviour.unapply in interface LambdaDecor<T>