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

Comparing jsr166/src/jsr166e/LongMaxUpdater.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 18:50:00 2013 UTC

# Line 19 | Line 19 | import java.io.ObjectOutputStream;
19   * 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 65 | Line 65 | public class LongMaxUpdater extends Stri
65  
66      /**
67       * Returns the current maximum.  The returned value is
68 <     * <em>NOT</em> an atomic snapshot: Invocation in the absence of
68 >     * <em>NOT</em> an atomic snapshot: invocation in the absence of
69       * concurrent updates returns an accurate result, but concurrent
70       * updates that occur while the value is being calculated might
71       * not be incorporated.
# Line 130 | Line 130 | public class LongMaxUpdater extends Stri
130  
131      /**
132       * Returns the String representation of the {@link #max}.
133 <     * @return the String representation of the {@link #max}.
133 >     * @return the String representation of the {@link #max}
134       */
135      public String toString() {
136          return Long.toString(max());

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines