Modifier and Type | Method and Description |
---|---|
State |
build() |
static State.Builder |
create() |
State.Builder |
onEnter(java.util.List<? extends Event> onEnter)
(experimental) Specifies the events on enter.
|
State.Builder |
onExit(java.util.List<? extends Event> onExit)
(experimental) Specifies the events on exit.
|
State.Builder |
onInput(java.util.List<? extends Event> onInput)
(experimental) Specifies the events on input.
|
State.Builder |
stateName(java.lang.String stateName)
(experimental) The name of the state.
|
public static State.Builder create()
State.Builder
.public State.Builder stateName(java.lang.String stateName)
stateName
- The name of the state. This parameter is required.this
public State.Builder onEnter(java.util.List<? extends Event> onEnter)
The conditions of the events will be evaluated when entering this state.
If the condition of the event evaluates to true
, the actions of the event will be executed.
Default: - no events will trigger on entering this state
onEnter
- Specifies the events on enter. This parameter is required.this
public State.Builder onExit(java.util.List<? extends Event> onExit)
The conditions of the events are evaluated when an exiting this state.
If the condition evaluates to true
, the actions of the event will be executed.
Default: - no events will trigger on exiting this state
onExit
- Specifies the events on exit. This parameter is required.this
public State.Builder onInput(java.util.List<? extends Event> onInput)
The conditions of the events will be evaluated when any input is received.
If the condition of the event evaluates to true
, the actions of the event will be executed.
Default: - no events will trigger on input in this state
onInput
- Specifies the events on input. This parameter is required.this
public State build()