public static class KV.OrderByKey<K extends java.lang.Comparable<? super K>,V> extends java.lang.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) |