Class KV.OrderByValue<K,​V extends java.lang.Comparable<? super V>>

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Comparator<KV<K,​V>>, SerializableComparator<KV<K,​V>>
    Enclosing class:
    KV<K,​V>

    public static class KV.OrderByValue<K,​V extends java.lang.Comparable<? super V>>
    extends java.lang.Object
    implements SerializableComparator<KV<K,​V>>
    A Comparator that orders KVs by the natural ordering of their values.

    A null value is less than any non-null value.

    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      OrderByValue()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(KV<K,​V> a, KV<K,​V> b)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • OrderByValue

        public OrderByValue()
    • Method Detail

      • compare

        public int compare​(KV<K,​V> a,
                           KV<K,​V> b)
        Specified by:
        compare in interface java.util.Comparator<K>