ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/Sorted.java
Revision: 1.5
Committed: Tue Aug 5 12:11:08 2003 UTC (20 years, 10 months ago) by dl
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +0 -0 lines
State: FILE REMOVED
Log Message:
Remove Sorted interface, adjust PQ and PBQ

File Contents

# User Rev Content
1 dl 1.2 package java.util;
2 tim 1.1
3     /**
4     * Mixin interface used by collections, maps, and similar objects to
5     * indicate that their elements or mappings are stored in sorted
6 brian 1.3 * order. This allows consumers of collections to determine if the collection
7     * is sorted, and if so, retrieve the sort comparator.
8 dl 1.4 * @since 1.5
9     * @author Josh Bloch
10 tim 1.1 */
11 dl 1.2
12     public interface Sorted {
13 tim 1.1 /**
14     * Returns the comparator used to order this collection, or <tt>null</tt>
15 brian 1.3 * if this collection is sorted according to its elements natural ordering
16     * (using <tt>Comparable</tt>.)
17 tim 1.1 *
18     * @return the comparator used to order this collection, or <tt>null</tt>
19     * if this collection is sorted according to its elements natural ordering.
20     */
21 dl 1.2 Comparator comparator();
22     }