Class BooleanComparators.OppositeComparator

java.lang.Object
it.unimi.dsi.fastutil.booleans.BooleanComparators.OppositeComparator
All Implemented Interfaces:
BooleanComparator, Serializable, Comparator<Boolean>
Enclosing class:
BooleanComparators

protected static class BooleanComparators.OppositeComparator extends Object implements BooleanComparator, Serializable
See Also:
  • Constructor Details

  • Method Details

    • compare

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