Class DoubleComparators.OppositeComparator

java.lang.Object
it.unimi.dsi.fastutil.doubles.DoubleComparators.OppositeComparator
All Implemented Interfaces:
DoubleComparator, Serializable, Comparator<Double>
Enclosing class:
DoubleComparators

protected static class DoubleComparators.OppositeComparator extends Object implements DoubleComparator, Serializable
See Also:
  • Constructor Details

  • Method Details

    • compare

      public final int compare(double a, double b)
      Description copied from interface: DoubleComparator
      Compares its two primitive-type arguments for order. Returns a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
      Specified by:
      compare in interface DoubleComparator
      Returns:
      a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
      See Also:
    • reversed

      public final DoubleComparator reversed()
      Specified by:
      reversed in interface Comparator<Double>
      Specified by:
      reversed in interface DoubleComparator