org.modeshape.jcr.index.local

## Class MapDB.TupleComparator<A,B>

- java.lang.Object
- - org.modeshape.jcr.index.local.MapDB.TupleComparator<A,B>

- All Implemented Interfaces:
    Serializable, Comparator<org.mapdb.Fun.Tuple2<A,B>>
  Enclosing class:
    MapDB

      protected static final class MapDB.TupleComparator<A,B>
      extends Object
      implements Comparator<org.mapdb.Fun.Tuple2<A,B>>, Serializable

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `MapDB.TupleComparator(Comparator<A> aComparator, Comparator<B> bComparator)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(org.mapdb.Fun.Tuple2<A,B> o1, org.mapdb.Fun.Tuple2<A,B> 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.TupleComparator

          protected MapDB.TupleComparator(Comparator<A> aComparator,
                               Comparator<B> bComparator)

  - ### Method Detail

    - #### compare

          public int compare(org.mapdb.Fun.Tuple2<A,B> o1,
                    org.mapdb.Fun.Tuple2<A,B> o2)

      Specified by:
        `compare` in interface `Comparator<org.mapdb.Fun.Tuple2<A,B>>`

    - #### equals

          public boolean equals(Object obj)

      Specified by:
        `equals` in interface `Comparator<org.mapdb.Fun.Tuple2<A,B>>`
      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.