org.apache.directory.mavibot.btree.comparator

## Class ShortComparator

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

- All Implemented Interfaces:
    Comparator<Short>

      public class ShortComparator
      extends Object
      implements Comparator<Short>

  Compares shorts
  Author:
    Apache Directory Project

- - ### Field Summary

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

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(Short short1, Short short2)` Compare two shorts.

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

      A static instance of a ShortComparator

  - ### Method Detail

    - #### compare

          public int compare(Short short1,
                    Short short2)

      Compare two shorts.
      Specified by:
        `compare` in interface `Comparator<Short>`
      Parameters:
        `short1` - First short
        `short2` - Second short
      Returns:
        1 if short1 > short2, 0 if short1 == short2, -1 if short1 < short2

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