19 |
|
* this class does extend {@code Number} to allow uniform access by |
20 |
|
* tools and utilities that deal with numerically-based classes. |
21 |
|
* |
22 |
< |
* <p><a name="bitEquals">This class compares primitive {@code double} |
22 |
> |
* <p id="bitEquals">This class compares primitive {@code double} |
23 |
|
* values in methods such as {@link #compareAndSet} by comparing their |
24 |
|
* bitwise representation using {@link Double#doubleToRawLongBits}, |
25 |
|
* which differs from both the primitive double {@code ==} operator |
123 |
|
* if the current value is <a href="#bitEquals">bitwise equal</a> |
124 |
|
* to the expected value. |
125 |
|
* |
126 |
< |
* <p>May <a |
126 |
> |
* <p><a |
127 |
|
* href="http://download.oracle.com/javase/7/docs/api/java/util/concurrent/atomic/package-summary.html#Spurious"> |
128 |
< |
* fail spuriously</a> |
129 |
< |
* and does not provide ordering guarantees, so is only rarely an |
130 |
< |
* appropriate alternative to {@code compareAndSet}. |
128 |
> |
* May fail spuriously and does not provide ordering guarantees</a>, |
129 |
> |
* so is only rarely an appropriate alternative to {@code compareAndSet}. |
130 |
|
* |
131 |
|
* @param expect the expected value |
132 |
|
* @param update the new value |