19 |
|
* variables maintaining the sum. |
20 |
|
* |
21 |
|
* <p>This class extends {@link Number}, but does <em>not</em> define |
22 |
< |
* methods such as {@code hashCode} and {@code compareTo} because |
23 |
< |
* instances are expected to be mutated, and so are not useful as |
24 |
< |
* collection keys. |
22 |
> |
* methods such as {@code equals}, {@code hashCode} and {@code |
23 |
> |
* compareTo} because instances are expected to be mutated, and so are |
24 |
> |
* not useful as collection keys. |
25 |
|
* |
26 |
|
* <p><em>jsr166e note: This class is targeted to be placed in |
27 |
|
* java.util.concurrent.atomic.</em> |
80 |
|
|
81 |
|
/** |
82 |
|
* Returns the current sum. The returned value is <em>NOT</em> an |
83 |
< |
* atomic snapshot: Invocation in the absence of concurrent |
83 |
> |
* atomic snapshot: invocation in the absence of concurrent |
84 |
|
* updates returns an accurate result, but concurrent updates that |
85 |
|
* occur while the sum is being calculated might not be |
86 |
|
* incorporated. Also, because double-precision arithmetic is not |