org.modeshape.jcr.index.local

## Class MapDB.UniqueKeyComparator<K>

- java.lang.Object
- - org.modeshape.jcr.index.local.MapDB.UniqueKeyComparator<K>

- All Implemented Interfaces:
    Serializable, Comparator<MapDB.UniqueKey<K>>
  Enclosing class:
    MapDB

      public static final class MapDB.UniqueKeyComparator<K>
      extends Object
      implements Comparator<MapDB.UniqueKey<K>>, Serializable

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `MapDB.UniqueKeyComparator(Comparator<K> valueComparator)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(MapDB.UniqueKey<K> o1, MapDB.UniqueKey<K> o2)`
    `boolean` | `equals(Object obj)`
    `int` | `hashCode()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### MapDB.UniqueKeyComparator

          public MapDB.UniqueKeyComparator(Comparator<K> valueComparator)

  - ### Method Detail

    - #### compare

          public int compare(MapDB.UniqueKey<K> o1,
                    MapDB.UniqueKey<K> o2)

      Specified by:
        `compare` in interface `Comparator<MapDB.UniqueKey<K>>`

    - #### equals

          public boolean equals(Object obj)

      Specified by:
        `equals` in interface `Comparator<MapDB.UniqueKey<K>>`
      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.