| Constructor and Description |
|---|
StateBuilder() |
| Modifier and Type | Method and Description |
|---|---|
State |
build()
Retrieves the built instance
|
State.StateBuilder |
isFinal(boolean finalState)
Sets the final state
|
State.StateBuilder |
named(String name)
Named state builder.
|
State.StateBuilder |
property(@NonNull String key,
@NonNull String value)
Adds a new property to the state.
|
public State.StateBuilder named(String name)
name - the namepublic State.StateBuilder isFinal(boolean finalState)
finalState - the final statepublic State.StateBuilder property(@NonNull @NonNull String key, @NonNull @NonNull String value)
key - the name of the propertyvalue - the value of the propertypublic State build()
Copyright © 2019 state-machine. All rights reserved.