@Deprecated(since="9")
public final boolean weakCompareAndSet (int i, E expectedValue, E newValue)

Deprecated: This method has plain memory effects but the method name implies volatile memory effects (see methods such as compareAndExchange and compareAndSet). To avoid confusion over plain or volatile memory effects it is recommended that the method weakCompareAndSetPlain be used instead.

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

See also:
weakCompareAndSetPlain