public interface StateContext<T>
| Modifier and Type | Method and Description |
|---|---|
StateContext<T> |
clear()
Clears state from the state context.
|
Cluster |
cluster()
Returns the current state cluster.
|
<U> U |
get(String key)
Gets a value from the state context.
|
StateContext<T> |
put(String key,
Object value)
Puts a value in the state context.
|
<U> U |
remove(String key)
Removes a value from the state context.
|
T |
state()
Returns the current state.
|
StateContext<T> |
transition(T state)
Transitions the context to a new state.
|
Cluster cluster()
T state()
StateContext<T> put(String key, Object value)
key - The state key.value - The state value.<U> U get(String key)
U - The state value type.key - The state key.<U> U remove(String key)
U - The state value type.key - The state key.StateContext<T> clear()
StateContext<T> transition(T state)
state - The state to which to transition.Copyright © 2013-2015. All Rights Reserved.