Schnittstelle ShortComparator

Alle Superschnittstellen:
Comparator<Short>
Alle bekannten Implementierungsklassen:
ShortComparator.Reversed

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

    • compare

      int compare(short o1, short 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(Short o1, Short 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<Short>
    • 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 ShortComparator reversed()
      Angegeben von:
      reversed in Schnittstelle Comparator<Short>