Class CharComparators.OppositeImplicitComparator

java.lang.Object
it.unimi.dsi.fastutil.chars.CharComparators.OppositeImplicitComparator
All Implemented Interfaces:
CharComparator, Serializable, Comparator<Character>
Enclosing class:
CharComparators

protected static class CharComparators.OppositeImplicitComparator extends Object implements CharComparator, 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(char a, char b)
      Description copied from interface: CharComparator
      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 CharComparator
      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 CharComparator reversed()
      Specified by:
      reversed in interface CharComparator
      Specified by:
      reversed in interface Comparator<Character>