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) |
public KeyValuePairComparator()
public KeyValuePairComparator(boolean ascending)
public KeyValuePairComparator(boolean byKey, boolean ascending)
public int compare(KeyValuePair kvp1, KeyValuePair kvp2)
compare
in interface Comparator<KeyValuePair>