# 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 `<em>trueFirst</em>` values before `&#x21;<em>trueFirst</em>` values.
  `static BooleanComparator`
  BooleanComparator.`getFalseFirstComparator()`
  Gets a BooleanComparator instance that sorts `false` values before `true` values.
  `static BooleanComparator`
  BooleanComparator.`getTrueFirstComparator()`
  Gets a BooleanComparator instance that sorts `true` values before `false` values.