M
- @API(status=MAINTAINED,
since="1.0")
public interface Action<M>
M
.
At runtime the execution of an action is regulated by a precondition.Modifier and Type | Method and Description |
---|---|
default boolean |
precondition(M model)
If this method returns false, the action will not be performed.
|
M |
run(M model)
Perform an action on model
M and return the same model (if it has state)
or a new one representing the new state. |
default boolean precondition(M model)
model
-