Class StateBuilder
-
- All Implemented Interfaces:
public final class StateBuilder<S extends Enum<S>>Builder for configuring tools in a specific state.
-
-
Method Summary
Modifier and Type Method Description final StateToolRegistration<S>withTool(Tool tool)Add a tool available in this state. final StateBuilder<S>inState(S state)Switch to configuring a different state. final StateMachineTool<S>withGlobalTool(Tool tool)Add a global tool (available in all states). final StateMachineTool<S>build()Finish building and return the StateMachineTool. -
-
Method Detail
-
withTool
final StateToolRegistration<S> withTool(Tool tool)
Add a tool available in this state.
-
inState
final StateBuilder<S> inState(S state)
Switch to configuring a different state.
-
withGlobalTool
final StateMachineTool<S> withGlobalTool(Tool tool)
Add a global tool (available in all states).
-
build
final StateMachineTool<S> build()
Finish building and return the StateMachineTool.
-
-
-
-