ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/jsr166e/LongAdder.java
(Generate patch)

Comparing jsr166/src/jsr166e/LongAdder.java (file contents):
Revision 1.7 by jsr166, Sat Sep 10 01:38:28 2011 UTC vs.
Revision 1.10 by jsr166, Sun Nov 18 18:03:10 2012 UTC

# Line 19 | Line 19 | import java.io.ObjectOutputStream;
19   * #longValue}) returns the current total combined across the
20   * variables maintaining the sum.
21   *
22 < * <p> This class is usually preferable to {@link AtomicLong} when
22 > * <p>This class is usually preferable to {@link AtomicLong} when
23   * multiple threads update a common sum that is used for purposes such
24   * as collecting statistics, not for fine-grained synchronization
25   * control.  Under low update contention, the two classes have similar
# Line 33 | Line 33 | import java.io.ObjectOutputStream;
33   * collection keys.
34   *
35   * <p><em>jsr166e note: This class is targeted to be placed in
36 < * java.util.concurrent.atomic<em>
36 > * java.util.concurrent.atomic.</em>
37   *
38   * @since 1.8
39   * @author Doug Lea
# Line 146 | Line 146 | public class LongAdder extends Striped64
146  
147      /**
148       * Returns the String representation of the {@link #sum}.
149 <     * @return the String representation of the {@link #sum}.
149 >     * @return the String representation of the {@link #sum}
150       */
151      public String toString() {
152          return Long.toString(sum());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines