public class KeyValuePairComparator extends Object implements Comparator<KeyValuePair>
Constructor and Description |
---|
KeyValuePairComparator() |
KeyValuePairComparator(boolean ascending) |
KeyValuePairComparator(boolean byKey,
boolean ascending) |
Modifier and Type | Method and Description |
---|---|
int |
compare(KeyValuePair kvp1,
KeyValuePair kvp2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public KeyValuePairComparator()
public KeyValuePairComparator(boolean ascending)
public KeyValuePairComparator(boolean byKey, boolean ascending)
public int compare(KeyValuePair kvp1, KeyValuePair kvp2)
compare
in interface Comparator<KeyValuePair>