public class AtomicReferenceArray<E> extends Object implements Serializable
Constructor and Description |
---|
AtomicReferenceArray(E[] array) |
AtomicReferenceArray(int length) |
Modifier and Type | Method and Description |
---|---|
boolean |
compareAndSet(int i,
E expect,
E update) |
E |
get(int i) |
E |
getAndSet(int i,
E newValue) |
void |
lazySet(int i,
E newValue) |
int |
length() |
void |
set(int i,
E newValue) |
String |
toString() |
boolean |
weakCompareAndSet(int i,
E expect,
E update) |
public AtomicReferenceArray(int length)
public AtomicReferenceArray(E[] array)