org.modeshape.jcr.query

## Class Tuples.Tuple2Comparator<T1,T2>

- java.lang.Object
- - org.modeshape.jcr.query.Tuples.Tuple2Comparator<T1,T2>

- All Implemented Interfaces:
    Serializable, Comparator<Tuples.Tuple2<T1,T2>>
  Enclosing class:
    Tuples

      protected static final class Tuples.Tuple2Comparator<T1,T2>
      extends Object
      implements Comparator<Tuples.Tuple2<T1,T2>>, Serializable

  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Modifier | Constructor and Description
    --- | ---
    `protected` | `Tuples.Tuple2Comparator(Comparator<T1> comparator1, Comparator<T2> comparator2)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compare(Tuples.Tuple2<T1,T2> arg0, Tuples.Tuple2<T1,T2> arg1)`
    `boolean` | `equals(Object obj)`
    `int` | `hashCode()`

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

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

- - ### Constructor Detail

    - #### Tuples.Tuple2Comparator

          protected Tuples.Tuple2Comparator(Comparator<T1> comparator1,
                                 Comparator<T2> comparator2)

  - ### Method Detail

    - #### compare

          public int compare(Tuples.Tuple2<T1,T2> arg0,
                    Tuples.Tuple2<T1,T2> arg1)

      Specified by:
        `compare` in interface `Comparator<Tuples.Tuple2<T1,T2>>`

    - #### equals

          public boolean equals(Object obj)

      Specified by:
        `equals` in interface `Comparator<Tuples.Tuple2<T1,T2>>`
      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.