162 |
|
* if the current value is <a href="#bitEquals">bitwise equal</a> |
163 |
|
* to the expected value. |
164 |
|
* |
165 |
< |
* <p>May <a |
165 |
> |
* <p><a |
166 |
|
* href="http://download.oracle.com/javase/7/docs/api/java/util/concurrent/atomic/package-summary.html#Spurious"> |
167 |
< |
* fail spuriously</a> |
168 |
< |
* and does not provide ordering guarantees, so is only rarely an |
169 |
< |
* appropriate alternative to {@code compareAndSet}. |
167 |
> |
|
168 |
> |
* May fail spuriously and does not provide ordering guarantees</a>, |
169 |
> |
* so is only rarely an appropriate alternative to {@code compareAndSet}. |
170 |
|
* |
171 |
|
* @param i the index |
172 |
|
* @param expect the expected value |