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

Comparing jsr166/src/jsr166e/LongAdderTable.java (file contents):
Revision 1.3 by dl, Mon Aug 29 17:06:20 2011 UTC vs.
Revision 1.6 by jsr166, Sat Sep 10 01:44:53 2011 UTC

# Line 20 | Line 20 | import java.io.Serializable;
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 {
# Line 29 | Line 30 | public class LongAdderTable<K> implement
30      /** The underlying map */
31      private final ConcurrentHashMapV8<K, LongAdder> map;
32  
33 <    static final class CreateAdder
33 >    static final class CreateAdder
34          implements ConcurrentHashMapV8.MappingFunction<Object, LongAdder> {
35          public LongAdder map(Object unused) { return new LongAdder(); }
36      }
# Line 135 | Line 136 | public class LongAdderTable<K> implement
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;
# Line 155 | Line 156 | public class LongAdderTable<K> implement
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;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines