@ThreadSafe public final class CurrentState extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CurrentState.State
Current state for stats or tags.
|
| Constructor and Description |
|---|
CurrentState(CurrentState.State defaultState)
Constructs a new
CurrentState. |
| Modifier and Type | Method and Description |
|---|---|
CurrentState.State |
get()
Returns the current state and updates the status as being read.
|
CurrentState.State |
getInternal()
Returns the current state without updating the status as being read.
|
boolean |
set(CurrentState.State state)
Sets current state to the given state.
|
public CurrentState(CurrentState.State defaultState)
CurrentState.defaultState - the default initial state.public CurrentState.State get()
public CurrentState.State getInternal()
public boolean set(CurrentState.State state)
state - the state to be set.