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