Schnittstelle BooleanComparator

Alle Superschnittstellen:
Comparator<Boolean>
Alle bekannten Implementierungsklassen:
BooleanComparator.Reversed

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

    • compare

      int compare(boolean o1, boolean 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(Boolean o1, Boolean 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<Boolean>
    • 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 BooleanComparator reversed()
      Angegeben von:
      reversed in Schnittstelle Comparator<Boolean>