Package org.jboss.hal.ballroom.form
Interface StateMachine
-
- All Known Implementing Classes:
AbstractStateMachine,AddOnlyStateMachine,ExistingStateMachine,ReadOnlyStateMachine,SingletonStateMachine
public interface StateMachineDefines how to transition between states based on operations.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description Form.Statecurrent()default voidexecute(Form.Operation operation)<C> voidexecute(Form.Operation operation, C context)voidreset()booleansupports(Form.Operation operation)booleansupports(Form.State state)
-
-
-
Method Detail
-
reset
void reset()
-
current
Form.State current()
-
supports
boolean supports(Form.State state)
-
supports
boolean supports(Form.Operation operation)
-
execute
default void execute(Form.Operation operation)
-
execute
<C> void execute(Form.Operation operation, @Nullable C context)
-
-