- Type Parameters:
T - the type of the value wrapped in this state
- All Implemented Interfaces:
State<T>, Storage
- Direct Known Subclasses:
CopyInt, CopyLong
Implementation of
State with copy strategy
- See Also:
-
-
Constructor Summary
Constructors
-
Method Summary
-
Constructor Details
-
Copy
protected Copy(T initial)
-
Method Details
-
setValue
Description copied from interface: State
Set the value
- Specified by:
setValue in interface State<T>
- Parameters:
v - the value to set
- Returns:
- the new value that was set
-
value
Description copied from interface: State
Retrieves the value
- Specified by:
value in interface State<T>
- Returns:
- the value
-
-