public final boolean weakCompareAndSetPlain (int i, int expectedValue, int newValue)

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.

Parameters:
i    the index
expectedValue    the expected value
newValue    the new value

Returns:  true if successful

Since:  9