org.apache.directory.mavibot.btree.comparator

## Class ShortArrayComparator

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

- All Implemented Interfaces:
    Comparator<short[]>

      public class ShortArrayComparator
      extends Object
      implements Comparator<short[]>

  Compares short arrays
  Author:
    Apache Directory Project

- - ### Field Summary

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

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(short[] shortArray1, short[] shortArray2)` Compare two short 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 ShortArrayComparator INSTANCE

      A static instance of a ShortArrayComparator

  - ### Method Detail

    - #### compare

          public int compare(short[] shortArray1,
                    short[] shortArray2)

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

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