public class VolatileReferenceCell<V>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected V |
value |
| Constructor and Description |
|---|
VolatileReferenceCell() |
VolatileReferenceCell(V initialValue) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
compareAndSet(V expect,
V update) |
V |
get() |
V |
getAndSet(V newValue) |
void |
lazySet(V newValue) |
void |
set(V newValue) |
java.lang.String |
toString() |
boolean |
weakCompareAndSet(V expect,
V update) |
public VolatileReferenceCell(V initialValue)
public VolatileReferenceCell()