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

Comparing jsr166/src/jsr166e/DoubleMaxUpdater.java (file contents):
Revision 1.2 by jsr166, Sat Sep 10 01:38:28 2011 UTC vs.
Revision 1.6 by jsr166, Sun Jan 6 05:57:42 2013 UTC

# Line 19 | Line 19 | import java.io.ObjectOutputStream;
19   * current maximum across the variables maintaining updates.
20   *
21   * <p>This class extends {@link Number}, but does <em>not</em> define
22 < * methods such as {@code hashCode} and {@code compareTo} because
23 < * instances are expected to be mutated, and so are not useful as
24 < * collection keys.
22 > * methods such as {@code equals}, {@code hashCode} and {@code
23 > * compareTo} because instances are expected to be mutated, and so are
24 > * not useful as 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
# Line 140 | Line 140 | public class DoubleMaxUpdater extends St
140  
141      /**
142       * Returns the String representation of the {@link #max}.
143 <     * @return the String representation of the {@link #max}.
143 >     * @return the String representation of the {@link #max}
144       */
145      public String toString() {
146          return Double.toString(max());
# Line 157 | Line 157 | public class DoubleMaxUpdater extends St
157  
158      /**
159       * Returns the {@link #max} as a {@code long} after a
160 <     * primitive conversion.
160 >     * narrowing primitive conversion.
161       */
162      public long longValue() {
163          return (long)max();
# Line 165 | Line 165 | public class DoubleMaxUpdater extends St
165  
166      /**
167       * Returns the {@link #max} as an {@code int} after a
168 <     * primitive conversion.
168 >     * narrowing primitive conversion.
169       */
170      public int intValue() {
171          return (int)max();
# Line 173 | Line 173 | public class DoubleMaxUpdater extends St
173  
174      /**
175       * Returns the {@link #max} as a {@code float}
176 <     * after a primitive conversion.
176 >     * after a narrowing primitive conversion.
177       */
178      public float floatValue() {
179          return (float)max();

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines