Class IntComparators.NaturalImplicitComparator

java.lang.Object
it.unimi.dsi.fastutil.ints.IntComparators.NaturalImplicitComparator
All Implemented Interfaces:
IntComparator, Serializable, Comparator<Integer>
Enclosing class:
IntComparators

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

    • NaturalImplicitComparator

      protected NaturalImplicitComparator()
  • Method Details

    • compare

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