| Modifier and Type | Class and Description |
|---|---|
static class |
Pairs.SortOrder
Sort ordering for
Pairs. |
| Modifier and Type | Method and Description |
|---|---|
static <C extends Comparable<C>,D> |
orderByFirst(Pairs.SortOrder order) |
static <C,D extends Comparable<D>> |
orderBySecond(Pairs.SortOrder order) |
public static <C extends Comparable<C>,D> Comparator<Pair<C,D>> orderByFirst(Pairs.SortOrder order)
C - type of first element in Pairs to be comparedD - type of second element in Pairs to be comparedorder - whether to sort ascending or descending; null comes lastPairs by first element as a Comparatorpublic static <C,D extends Comparable<D>> Comparator<Pair<C,D>> orderBySecond(Pairs.SortOrder order)
C - type of first element in Pairs to be comparedD - type of second element in Pairs to be comparedorder - whether to sort ascending or descending; null comes lastPairs by second element as a ComparatorCopyright © 2014–2018. All rights reserved.