Example usage for org.apache.commons.collections ComparatorUtils booleanComparator

List of usage examples for org.apache.commons.collections ComparatorUtils booleanComparator

Introduction

In this page you can find the example usage for org.apache.commons.collections ComparatorUtils booleanComparator.

Prototype

public static Comparator booleanComparator(boolean trueFirst) 

Source Link

Document

Gets a Comparator that can sort Boolean objects.

Usage

From source file:ComparatorExampleForBuildInDataType.java

private void createComparators() {
    boolComp = ComparatorUtils.booleanComparator(true);
    fixedComp = new FixedOrderComparator(stringParams);
}