| Modifier and Type | Field and Description |
|---|---|
| pack-priv static final ReverseNaturalOrdering | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | compare(Comparable<?>
the first object to be compared. left, Comparable<?> the second object to be compared. right)Implements abstract com. Implements java. |
| public <E extends Comparable | max(E
value to compare, returned if greater than or equal to b. a, E value to compare. b)Overrides com. |
| public <E extends Comparable | max(E
value to compare, returned if greater than or equal to the rest. a, E value to compare b, E value to compare c, E... values to compare rest)Overrides com. |
| public <E extends Comparable | max(Iterator<E>
the iterator whose maximum element is to be determined iterator)Overrides com. |
| public <E extends Comparable | max(Iterable<E>
the iterable whose maximum element is to be determined iterable)Overrides com. |
| public <E extends Comparable | min(E
value to compare, returned if less than or equal to b. a, E value to compare. b)Overrides com. |
| public <E extends Comparable | min(E
value to compare, returned if less than or equal to the rest. a, E value to compare b, E value to compare c, E... values to compare rest)Overrides com. |
| public <E extends Comparable | min(Iterator<E>
the iterator whose minimum element is to be determined iterator)Overrides com. |
| public <E extends Comparable | min(Iterable<E>
the iterable whose minimum element is to be determined iterable)Overrides com. |
| private Object | |
| public <S extends Comparable | reverse()
Overrides com. Ordering equivalent to Collections#reverseOrder(Comparator).
|
| public String |
| INSTANCE | back to summary |
|---|---|
| pack-priv static final ReverseNaturalOrdering INSTANCE | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ReverseNaturalOrdering | back to summary |
|---|---|
| private ReverseNaturalOrdering() | |
| compare | back to summary |
|---|---|
| public int compare(Comparable<?> left, Comparable<?> right) Implements abstract com. 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
| |
| max | back to summary |
|---|---|
| public <E extends Comparable Overrides com. Doc from com. Returns the greater of the two values according to this ordering. If the values compare as 0, the first is returned. Implementation Note this method is invoked by the default implementations of the
other Note Consider using
| |
| max | back to summary |
|---|---|
| public <E extends Comparable Overrides com. Doc from com. Returns the greatest of the specified values according to this ordering. If there are multiple greatest values, the first of those is returned. Java 8+ users: Use
| |
| max | back to summary |
|---|---|
| public <E extends Comparable Overrides com. Doc from com. Returns the greatest of the specified values according to this ordering. If there are multiple
greatest values, the first of those is returned. The iterator will be left exhausted: its
Java 8+ users: Use | |
| max | back to summary |
|---|---|
| public <E extends Comparable Overrides com. Doc from com. Returns the greatest of the specified values according to this ordering. If there are multiple greatest values, the first of those is returned. Java 8+ users: If | |
| min | back to summary |
|---|---|
| public <E extends Comparable Overrides com. Doc from com. Returns the lesser of the two values according to this ordering. If the values compare as 0, the first is returned. Implementation Note this method is invoked by the default implementations of the
other Note Consider using
| |
| min | back to summary |
|---|---|
| public <E extends Comparable Overrides com. Doc from com. Returns the least of the specified values according to this ordering. If there are multiple least values, the first of those is returned. Java 8+ users: Use
| |
| min | back to summary |
|---|---|
| public <E extends Comparable Overrides com. Doc from com. Returns the least of the specified values according to this ordering. If there are multiple
least values, the first of those is returned. The iterator will be left exhausted: its Java 8+ users: Use | |
| min | back to summary |
|---|---|
| public <E extends Comparable Overrides com. Doc from com. Returns the least of the specified values according to this ordering. If there are multiple least values, the first of those is returned. Java 8+ users: If | |
| readResolve | back to summary |
|---|---|
| private Object readResolve() | |
| reverse | back to summary |
|---|---|
| public <S extends Comparable Overrides com. Doc from com. Returns the reverse of this ordering; the Java 8+ users: Use
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |