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

Comparing jsr166/src/jsr166e/DoubleAdder.java (file contents):
Revision 1.1 by dl, Tue Aug 2 18:04:12 2011 UTC vs.
Revision 1.5 by jsr166, Sun Nov 18 03:07:22 2012 UTC

# Line 24 | Line 24 | import java.io.ObjectOutputStream;
24   * collection keys.
25   *
26   * <p><em>jsr166e note: This class is targeted to be placed in
27 < * java.util.concurrent.atomic<em>
27 > * java.util.concurrent.atomic.</em>
28   *
29 + * @since 1.8
30   * @author Doug Lea
31   */
32   public class DoubleAdder extends Striped64 implements Serializable {
# Line 144 | Line 145 | public class DoubleAdder extends Striped
145  
146      /**
147       * Returns the String representation of the {@link #sum}.
148 <     * @return the String representation of the {@link #sum}.
148 >     * @return the String representation of the {@link #sum}
149       */
150      public String toString() {
151          return Double.toString(sum());
# Line 161 | Line 162 | public class DoubleAdder extends Striped
162  
163      /**
164       * Returns the {@link #sum} as a {@code long} after a
165 <     * primitive conversion.
165 >     * narrowing primitive conversion.
166       */
167      public long longValue() {
168          return (long)sum();
# Line 169 | Line 170 | public class DoubleAdder extends Striped
170  
171      /**
172       * Returns the {@link #sum} as an {@code int} after a
173 <     * primitive conversion.
173 >     * narrowing primitive conversion.
174       */
175      public int intValue() {
176          return (int)sum();
# Line 177 | Line 178 | public class DoubleAdder extends Striped
178  
179      /**
180       * Returns the {@link #sum} as a {@code float}
181 <     * after a primitive conversion.
181 >     * after a narrowing primitive conversion.
182       */
183      public float floatValue() {
184          return (float)sum();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines