Class FloatComparators.NaturalImplicitComparator

java.lang.Object
it.unimi.dsi.fastutil.floats.FloatComparators.NaturalImplicitComparator
All Implemented Interfaces:
FloatComparator, Serializable, Comparator<Float>
Enclosing class:
FloatComparators

protected static class FloatComparators.NaturalImplicitComparator extends Object implements FloatComparator, Serializable
A type-specific comparator mimicking the natural order.
See Also:
  • Constructor Details

    • NaturalImplicitComparator

      protected NaturalImplicitComparator()
  • Method Details

    • compare

      public final int compare(float a, float b)
      Description copied from interface: FloatComparator
      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 FloatComparator
      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 FloatComparator reversed()
      Specified by:
      reversed in interface Comparator<Float>
      Specified by:
      reversed in interface FloatComparator