ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/jsr166/jsr166/src/main/java/util/Sorted.java
Revision: 1.2
Committed: Tue May 27 18:20:06 2003 UTC (21 years ago) by dl
Branch: MAIN
CVS Tags: JSR166_PRELIMINARY_TEST_RELEASE_1, JSR166_PRERELEASE_0_1
Changes since 1.1: +5 -4 lines
Log Message:
re-checkin initial implementations

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     * order.
7     */
8 dl 1.2
9     public interface Sorted {
10 tim 1.1 /**
11     * Returns the comparator used to order this collection, or <tt>null</tt>
12     * if this collection is sorted according to its elements natural ordering.
13     *
14     * @return the comparator used to order this collection, or <tt>null</tt>
15     * if this collection is sorted according to its elements natural ordering.
16     */
17 dl 1.2 Comparator comparator();
18     }