public static class KV.OrderByKey<K extends Comparable<? super K>,V> extends Object implements SerializableComparator<KV<K,V>>
Comparator that orders KVs by the natural ordering of their keys.
A null key is less than any non-null key.
| Constructor and Description |
|---|
OrderByKey() |
| Modifier and Type | Method and Description |
|---|---|
int |
compare(KV<K,V> a,
KV<K,V> b) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcomparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong