| Modifier and Type | Field and Description |
|---|---|
| public static final Comparator |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(Comparable<T>
the first object to be compared. one, Comparable<T> the second object to be compared. another)Implements java. |
| public static <T extends Comparable |
| INSTANCE | back to summary |
|---|---|
| public static final Comparator<T> INSTANCE | |
| ComparableComparator | back to summary |
|---|---|
| public ComparableComparator() | |
| compare | back to summary |
|---|---|
| public int compare(Comparable<T> one, Comparable<T> another) Implements java. Doc from java. Compares its two arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
The implementor must ensure that
The implementor must also ensure that the relation is transitive:
Finally, the implementor must ensure that
| |
| instance | back to summary |
|---|---|
public static <T extends Comparable
| |