Class ShortComparators.OppositeImplicitComparator

java.lang.Object
it.unimi.dsi.fastutil.shorts.ShortComparators.OppositeImplicitComparator
All Implemented Interfaces:
ShortComparator, Serializable, Comparator<Short>
Enclosing class:
ShortComparators

protected static class ShortComparators.OppositeImplicitComparator extends Object implements ShortComparator, Serializable
A type-specific comparator mimicking the opposite of the natural order.
See Also:
  • Constructor Details

    • OppositeImplicitComparator

      protected OppositeImplicitComparator()
  • Method Details

    • compare

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