V - the value typepublic class SimpleHolder<V> extends Object implements Holder<V>, Serializable
There value is simply held by a non-volatile reference, thus SimpleHolder does not provide any inter-thread visibility guarantees.
| Constructor and Description | 
|---|
SimpleHolder()
Construct a SimpleHolder with no value. 
 | 
SimpleHolder(V value)
Construct a SimpleHolder with an initial value. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
V | 
get()
Return the held object. 
 | 
void | 
set(V value)
Specify the held object. 
 |