org.apache.directory.mavibot.btree.comparator

## Class BooleanComparator

- java.lang.Object
- - org.apache.directory.mavibot.btree.comparator.BooleanComparator

- All Implemented Interfaces:
    Comparator<Boolean>

      public class BooleanComparator
      extends Object
      implements Comparator<Boolean>

  Compares booleans
  Author:
    Apache Directory Project

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static BooleanComparator` | `INSTANCE` A static instance of a BooleanComparator

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(Boolean boolean1, Boolean boolean2)` Compare two booleans.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

    - ### Methods inherited from interface java.util.Comparator

      `equals`

- - ### Field Detail

    - #### INSTANCE

          public static final BooleanComparator INSTANCE

      A static instance of a BooleanComparator

  - ### Method Detail

    - #### compare

          public int compare(Boolean boolean1,
                    Boolean boolean2)

      Compare two booleans.
      Specified by:
        `compare` in interface `Comparator<Boolean>`
      Parameters:
        `boolean1` - First boolean
        `boolean2` - Second boolean
      Returns:
        1 if boolean1 > boolean2, 0 if boolean1 == boolean2, -1 if boolean1 < boolean2

Copyright © 2012–2015 Apache Mavibot Project Parent. All rights reserved.