AtomicReferenceクラスのcompareAndSet(V expect, V update)メソッドの動作はどれか。

現在の値がexpectと等しい(==)場合のみ、updateに更新しtrueを返す