org.apache.directory.mavibot.btree.comparator

## Class IntComparator

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

- All Implemented Interfaces:
    Comparator<Integer>

      public class IntComparator
      extends Object
      implements Comparator<Integer>

  Compares integers
  Author:
    Apache Directory Project

- - ### Field Summary

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

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(Integer integer1, Integer integer2)` Compare two integers.

    - ### 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 IntComparator INSTANCE

      A static instance of a IntComparator

  - ### Method Detail

    - #### compare

          public int compare(Integer integer1,
                    Integer integer2)

      Compare two integers.
      Specified by:
        `compare` in interface `Comparator<Integer>`
      Parameters:
        `integer1` - First integer
        `integer2` - Second integer
      Returns:
        1 if integer1 > integer2, 0 if integer1 == integer2, -1 if integer1 < integer2

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