Schnittstelle CharComparator

Alle Superschnittstellen:
Comparator<Character>
Alle bekannten Implementierungsklassen:
CharComparator.Reversed

public interface CharComparator extends Comparator<Character>
Type-Specific Class for Comparator to reduce (un)boxing
  • Methodendetails

    • compare

      int compare(char o1, char o2)
      Type-Specific compare function to reduce (un)boxing
      Parameter:
      o1 - the first object to be compared.
      o2 - the second object to be compared.
      Gibt zurück:
      a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
      Siehe auch:
    • compare

      @Deprecated default int compare(Character o1, Character o2)
      Veraltet.
      Please use the corresponding type-specific function instead.

      This default implementation delegates to the corresponding type-specific function.

      Angegeben von:
      compare in Schnittstelle Comparator<Character>
    • of

      A Wrapper function to convert a Non-Type-Specific Comparator to a Type-Specific-Comparator
      Parameter:
      c - comparator to convert
      Gibt zurück:
      the wrapper of the comparator
      Löst aus:
      NullPointerException - if the comparator is null
    • reversed

      default CharComparator reversed()
      Angegeben von:
      reversed in Schnittstelle Comparator<Character>