| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final SerializableComparator | |
| private static final SerializableComparator |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static <T, V extends Comparable | |
| public static <T, V> SerializableComparator | |
| public static <T> SerializableComparator | naturalOrder()
Uses the natural compareTo methods of the objects which will throw if there are any nulls. |
| public static <T> SerializableComparator | Returns: A comparator that reverses the order of any other Serializable Comparator.original comparator whose order will be reversed comparator)
|
| public static <T> SerializableComparator | reverseNaturalOrder()
Uses the natural compareTo methods of the objects which will throw if there are any nulls. |
| NATURAL_ORDER_COMPARATOR | back to summary |
|---|---|
| private static final SerializableComparator<?> NATURAL_ORDER_COMPARATOR | |
| REVERSE_NATURAL_ORDER_COMPARATOR | back to summary |
|---|---|
| private static final SerializableComparator<?> REVERSE_NATURAL_ORDER_COMPARATOR | |
| SerializableComparators | back to summary |
|---|---|
| private SerializableComparators() | |
| byFunction | back to summary |
|---|---|
| public static <T, V extends Comparable | |
| byFunction | back to summary |
|---|---|
| public static <T, V> SerializableComparator | |
| naturalOrder | back to summary |
|---|---|
| public static <T> SerializableComparator Uses the natural compareTo methods of the objects which will throw if there are any nulls. | |
| reverse | back to summary |
|---|---|
public static <T> SerializableComparator
| |
| reverseNaturalOrder | back to summary |
|---|---|
| public static <T> SerializableComparator Uses the natural compareTo methods of the objects which will throw if there are any nulls. | |
| Modifier and Type | Field and Description |
|---|---|
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| NaturalOrderComparator | back to summary |
|---|---|
| private NaturalOrderComparator() | |
| compare | back to summary |
|---|---|
| public int compare(T o1, T o2) 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
| |
| Modifier and Type | Field and Description |
|---|---|
| private final SerializableComparator | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int |
| comparator | back to summary |
|---|---|
| private final SerializableComparator<T> comparator | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| ReverseComparator | back to summary |
|---|---|
| private ReverseComparator(SerializableComparator<T> comparator) | |
| compare | back to summary |
|---|---|
| public int compare(T o1, T o2) 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
| |