Comparator variants.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> Comparator | |
| public static <T> Comparator | nullsHigh()
Return a |
| public static <T> Comparator | nullsHigh(Comparator<T> comparator)
Return a decorator for the given comparator which accepts null values and sorts them higher than non-null values. |
| public static <T> Comparator | nullsLow()
Return a |
| public static <T> Comparator | nullsLow(Comparator<T> comparator)
Return a decorator for the given comparator which accepts null values and sorts them lower than non-null values. |
| Comparators | back to summary |
|---|---|
| public Comparators() | |
| comparable | back to summary |
|---|---|
| public static <T> Comparator Return a
| |
| nullsHigh | back to summary |
|---|---|
| public static <T> Comparator Return a
| |
| nullsHigh | back to summary |
|---|---|
| public static <T> Comparator Return a decorator for the given comparator which accepts null values and sorts them higher than non-null values.
| |
| nullsLow | back to summary |
|---|---|
| public static <T> Comparator Return a
| |
| nullsLow | back to summary |
|---|---|
| public static <T> Comparator Return a decorator for the given comparator which accepts null values and sorts them lower than non-null values.
| |