# Uses of Class
org.apache.commons.collections4.comparators.BooleanComparator

Packages that use BooleanComparator
Package
Description
org.apache.commons.collections4.comparators
Implements the `Comparator` interface.

- ## Uses of BooleanComparator in org.apache.commons.collections4.comparators

  Methods in org.apache.commons.collections4.comparators that return BooleanComparator
  Modifier and Type
  Method
  Description
  `static BooleanComparator`
  BooleanComparator.`booleanComparator(boolean trueFirst)`
  Returns a BooleanComparator instance that sorts `<i>trueFirst</i>` values before `&#x21;<i>trueFirst</i>` values.
  `static BooleanComparator`
  BooleanComparator.`getFalseFirstComparator()`
  Returns a BooleanComparator instance that sorts `false` values before `true` values.
  `static BooleanComparator`
  BooleanComparator.`getTrueFirstComparator()`
  Returns a BooleanComparator instance that sorts `true` values before `false` values.