| Modifier and Type | Method and Description |
|---|---|
State |
build() |
static State.Builder |
create() |
State.Builder |
onEnter(List<? extends Event> onEnter)
(experimental) Specifies the events on enter.
|
State.Builder |
onExit(List<? extends Event> onExit)
(experimental) Specifies the events on exit.
|
State.Builder |
onInput(List<? extends Event> onInput)
(experimental) Specifies the events on input.
|
State.Builder |
stateName(String stateName)
(experimental) The name of the state.
|
@Stability(value=Experimental) public static State.Builder create()
State.Builder.@Stability(value=Experimental) public State.Builder stateName(String stateName)
stateName - The name of the state. This parameter is required.this@Stability(value=Experimental) public State.Builder onEnter(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@Stability(value=Experimental) public State.Builder onExit(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@Stability(value=Experimental) public State.Builder onInput(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.thisCopyright © 2022. All rights reserved.