Class ByteComparators.NaturalImplicitComparator

java.lang.Object
it.unimi.dsi.fastutil.bytes.ByteComparators.NaturalImplicitComparator
All Implemented Interfaces:
ByteComparator, Serializable, Comparator<Byte>
Enclosing class:
ByteComparators

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

    • NaturalImplicitComparator

      protected NaturalImplicitComparator()
  • Method Details

    • compare

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