Bali Share 1.1.18

oracle.bali.share.sort
Class BooleanComparator

java.lang.Object
  |
  +--oracle.bali.share.sort.BooleanComparator
All Implemented Interfaces:
Comparator

public class BooleanComparator
extends java.lang.Object
implements Comparator

This class implements a Comparator for Booleans. True is greater than false in the BooleanComparator.

See Also:
Comparator

Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Implement the Comparator interface by comparing two Booleans.
static Comparator getComparator()
          Get the only instance of the Comparator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getComparator

public static Comparator getComparator()
Get the only instance of the Comparator.

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Implement the Comparator interface by comparing two Booleans.
Specified by:
compare in interface Comparator

Bali Share 1.1.18