Resets variables maintaining the sum to zero. This method may be a useful alternative to creating a new adder, but is only effective if there are no concurrent updates. Because this method is intrinsically racy, it should only be used when it is known that no threads are concurrently updating.
()
| 139 | |
| 140 | |
| 141 | public void reset() { |
| 142 | internalReset(0L); |
| 143 | } |
| 144 | |
| 145 | /** |
| 146 | * Equivalent in effect to {@link #sum} followed by {@link |
no test coverage detected