Does pair equal (a, b), according to the notion of equality we're using in compareAndSet? The definition is based on compareA and compareB.
Does pair equal (a, b), according to the notion of equality we're using in compareAndSet? The definition is based on compareA and compareB.
Notion of equality used on the first (A) component in compareAndSet operations.
Notion of equality used on the first (A) component in compareAndSet operations. Here the notion is value equality (==), but this is overwritten in subclasses.
If the current value is equal to expected then update to new and return true; otherwise return false.
If the two components are equal to expectedA and expectedB (according to compare) then update them to newA and newB and return true; otherwise return false.
If the first component equals expectedA (according to compareA) then update it to newA and return true; otherwise return false.
If the second component equals expectedB (according to compareB) then update it to newB and return true; otherwise return false.
Notion of equality used on the second (B) component in compareAndSet operations.
Notion of equality used on the second (B) component in compareAndSet operations. Here the notion is value equality (==), but this is overwritten in subclasses.
Get the value of the pair
Get the first element of the pair
Get the second element of the pair
Set the value of the pair
Set the value of the pair
Each object of this class encapsulates an (A,B) pair, but allows various atomic operations upon that pair. Comparisons in CAS operations use value equality (==). The implementation is based on the implementation of java.util.concurrent.atomic.AtomicStampedReference.