Possibly atomically sets the element at index i
to
newValue
if the element's current value == expectedValue
,
with memory effects as specified by VarHandle.weakCompareAndSetPlain
.
i | the index | |
expectedValue | the expected value | |
newValue | the new value |
true
if successful
Diagram: AtomicArray