20 |
|
* <p><em>jsr166e note: This class is targeted to be placed in |
21 |
|
* java.util.concurrent.atomic<em> |
22 |
|
* |
23 |
+ |
* @since 1.8 |
24 |
|
* @author Doug Lea |
25 |
|
*/ |
26 |
|
public class LongAdderTable<K> implements Serializable { |
136 |
|
/** |
137 |
|
* Returns the sum totalled across all keys. |
138 |
|
* |
139 |
< |
* @return the sum totalled across all keys. |
139 |
> |
* @return the sum totalled across all keys |
140 |
|
*/ |
141 |
|
public long sumAll() { |
142 |
|
long sum = 0L; |
156 |
|
/** |
157 |
|
* Totals, then resets, the sums associated with all keys. |
158 |
|
* |
159 |
< |
* @return the sum totalled across all keys. |
159 |
> |
* @return the sum totalled across all keys |
160 |
|
*/ |
161 |
|
public long sumThenResetAll() { |
162 |
|
long sum = 0L; |