Class GreaterAbsent<V>

  • All Implemented Interfaces:
    java.util.Comparator<Optional<? extends V>>

    public final class GreaterAbsent<V>
    extends DelegatingComparator<Optional<? extends V>>
    A Comparator for Optional values. This is primarily meant to be used with OptionalComparator if an absent value is supposed to be larger than a present value.
    • Constructor Summary

      Constructors 
      Constructor Description
      GreaterAbsent​(java.util.Comparator<? super Optional<? extends V>> delegate)  
    • Method Summary

      • 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

      • GreaterAbsent

        public GreaterAbsent​(java.util.Comparator<? super Optional<? extends V>> delegate)