public class OkkamComparators extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends Comparable<T>> |
sortAscending()
Comparator to sort ascending (or alphabetically for strings).
|
static <T extends Comparable<T>> |
sortDescending()
Comparator to sort descending (or reverse alphabetically for strings).
|
public static <T extends Comparable<T>> Comparator<T> sortAscending()
T - the type of the genericpublic static <T extends Comparable<T>> Comparator<T> sortDescending()
T - the type of the genericCopyright © 2018 Okkam srl. All rights reserved.