org.apache.directory.mavibot.btree.comparator

## Class LongComparator

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

- All Implemented Interfaces:
    Comparator<Long>

      public class LongComparator
      extends Object
      implements Comparator<Long>

  Compares Longs
  Author:
    Apache Directory Project

- - ### Field Summary

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

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(Long long1, Long long2)` Compare two longs.

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

      A static instance of a LongComparator

  - ### Method Detail

    - #### compare

          public int compare(Long long1,
                    Long long2)

      Compare two longs.
      Specified by:
        `compare` in interface `Comparator<Long>`
      Parameters:
        `long1` - First long
        `long2` - Second long
      Returns:
        1 if long1 > long2, 0 if long1 == long2, -1 if long1 < long2

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