org.apache.directory.mavibot.btree.comparator

## Class IntArrayComparator

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

- All Implemented Interfaces:
    Comparator<int[]>

      public class IntArrayComparator
      extends Object
      implements Comparator<int[]>

  Compares int arrays
  Author:
    Apache Directory Project

- - ### Field Summary

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

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(int[] intArray1, int[] intArray2)` 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 IntArrayComparator INSTANCE

      A static instance of a IntArrayComparator

  - ### Method Detail

    - #### compare

          public int compare(int[] intArray1,
                    int[] intArray2)

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

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