Is AtomicReferenceArray<T> equivalent to Array<AtomicReference<T>>?
I'd like to know this and I can't find the info anywhere: is an AtomicReferenceArray<T> equivalent to an Array<AtomicReference<T>>? What do you think?
An AtomicReferenceArray is an array of object references in which elements may be updated atomically.
An AtomicReference is an object reference that may be updated atomically.
So it would be equivalent, I guess? It doesn't say if in an AtomicReferenceArray there are more operations (other than access to the elements) that are also atomic.
Atomicity is tricky. ;)