org.apache.directory.mavibot.btree.comparator

## Class LongArrayComparator

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

- All Implemented Interfaces:
    Comparator<long[]>

      public class LongArrayComparator
      extends Object
      implements Comparator<long[]>

  Compares long arrays
  Author:
    Apache Directory Project

- - ### Field Summary

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

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(long[] longArray1, long[] longArray2)` Compare two long arrays.

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

      A static instance of a LongArrayComparator

  - ### Method Detail

    - #### compare

          public int compare(long[] longArray1,
                    long[] longArray2)

      Compare two long arrays.
      Specified by:
        `compare` in interface `Comparator<long[]>`
      Parameters:
        `longArray1` - First long array
        `longArray2` - Second long array
      Returns:
        1 if longArray1 > longArray2, 0 if longArray1 == longArray2, -1 if longArray1 < longArray2

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