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

Comparing jsr166/src/main/java/util/Sorted.java (file contents):
Revision 1.2 by dl, Tue May 27 18:20:06 2003 UTC vs.
Revision 1.3 by brian, Mon Jun 23 02:26:15 2003 UTC

# Line 3 | Line 3
3   /**
4   * Mixin interface used by collections, maps, and similar objects to
5   * indicate that their elements or mappings are stored in sorted
6 < * order.
6 > * order.  This allows consumers of collections to determine if the collection
7 > * is sorted, and if so, retrieve the sort comparator.
8   */
9  
10   public interface Sorted {
11      /**
12       * Returns the comparator used to order this collection, or <tt>null</tt>
13 <     * if this collection is sorted according to its elements natural ordering.
13 >     * if this collection is sorted according to its elements natural ordering
14 >     * (using <tt>Comparable</tt>.)  
15       *
16       * @return the comparator used to order this collection, or <tt>null</tt>
17       * if this collection is sorted according to its elements natural ordering.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines