@ApiStatus.Internal public abstract class AbstractStateValue extends java.lang.Object implements StateValue
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractStateValue(State<?> state) |
| Modifier and Type | Method and Description |
|---|---|
abstract java.lang.Object |
get()
The current state value.
|
long |
getId()
The id of this state on its current host.
|
State<?> |
getState()
The state who holds this value.
|
void |
set(java.lang.Object value)
Sets the new state value.
|
java.lang.String |
toString() |
protected AbstractStateValue(State<?> state)
public final State<?> getState()
StateValuegetState in interface StateValuepublic final long getId()
StateValuegetId in interface StateValuepublic abstract java.lang.Object get()
StateValueThe value returned and consistency with values returned by the same earlier is unknown as this is implementation defined.
get in interface StateValuepublic void set(java.lang.Object value)
StateValueset in interface StateValuevalue - The new value.public java.lang.String toString()
toString in class java.lang.Object