public class ObjectValuePairComparator<K,V> extends Object implements Comparator<ObjectValuePair<K,V>>
Constructor and Description |
---|
ObjectValuePairComparator() |
ObjectValuePairComparator(boolean ascending) |
ObjectValuePairComparator(boolean byKey,
boolean ascending) |
Modifier and Type | Method and Description |
---|---|
int |
compare(ObjectValuePair<K,V> ovp1,
ObjectValuePair<K,V> ovp2) |
public ObjectValuePairComparator()
public ObjectValuePairComparator(boolean ascending)
public ObjectValuePairComparator(boolean byKey, boolean ascending)
public int compare(ObjectValuePair<K,V> ovp1, ObjectValuePair<K,V> ovp2)
compare
in interface Comparator<ObjectValuePair<K,V>>