| java.lang.Object | |
| ↳ | java.util.concurrent.atomic.AtomicReferenceArray<E> | 
An array of object references in which elements may be updated
 atomically.  See the java.util.concurrent.atomic package
 specification for description of the properties of atomic
 variables.
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Creates a new AtomicReferenceArray of the given length, with all
 elements initially null. | |||||||||||
| Creates a new AtomicReferenceArray with the same length as, and
 all elements copied from, the given array. | |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Atomically sets the element at position  ito the given
 updated value if the current value==the expected value. | |||||||||||
| Gets the current value at position  i. | |||||||||||
| Atomically sets the element at position  ito the given
 value and returns the old value. | |||||||||||
| Eventually sets the element at position  ito the given value. | |||||||||||
| Returns the length of the array. | |||||||||||
| Sets the element at position  ito the given value. | |||||||||||
| Returns the String representation of the current values of array. | |||||||||||
| Atomically sets the element at position  ito the given
 updated value if the current value==the expected value. | |||||||||||
| [Expand] Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|  From class
  java.lang.Object | |||||||||||
Creates a new AtomicReferenceArray of the given length, with all elements initially null.
| length | the length of the array | 
|---|
Creates a new AtomicReferenceArray with the same length as, and all elements copied from, the given array.
| array | the array to copy elements from | 
|---|
| NullPointerException | if array is null | 
|---|
Atomically sets the element at position i to the given
 updated value if the current value == the expected value.
| i | the index | 
|---|---|
| expect | the expected value | 
| update | the new value | 
Gets the current value at position i.
| i | the index | 
|---|
Atomically sets the element at position i to the given
 value and returns the old value.
| i | the index | 
|---|---|
| newValue | the new value | 
Eventually sets the element at position i to the given value.
| i | the index | 
|---|---|
| newValue | the new value | 
Returns the length of the array.
Sets the element at position i to the given value.
| i | the index | 
|---|---|
| newValue | the new value | 
Returns the String representation of the current values of array.
Atomically sets the element at position i to the given
 updated value if the current value == the expected value.
 
May fail
 spuriously and does not provide ordering guarantees, so is
 only rarely an appropriate alternative to compareAndSet.
| i | the index | 
|---|---|
| expect | the expected value | 
| update | the new value |