Class DoubleFunctionComparator<T>

  • All Implemented Interfaces:
    java.io.Serializable, java.util.Comparator<T>, SerializableComparator<T>

    public class DoubleFunctionComparator<T>
    extends java.lang.Object
    implements SerializableComparator<T>
    A Comparator which takes a DoubleFunction to compare a primitive double value retrieved from an object. This file was automatically generated from template file primitiveFunctionComparator.stg.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(T o1, T o2)  
      • 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

      • DoubleFunctionComparator

        public DoubleFunctionComparator​(DoubleFunction<T> function)
    • Method Detail

      • compare

        public int compare​(T o1,
                           T o2)
        Specified by:
        compare in interface java.util.Comparator<T>