org.modeshape.jcr.query

## Class Tuples.Tuple2<T1,T2>

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

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

      public static final class Tuples.Tuple2<T1,T2>
      extends Object
      implements Comparable<Tuples.Tuple2<T1,T2>>

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `T1` | `v1`
    `T2` | `v2`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Tuples.Tuple2(T1 v1, T2 v2)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `int` | `compareTo(Tuples.Tuple2<T1,T2> that)`
    `boolean` | `equals(Object obj)`
    `int` | `hashCode()`
    `String` | `toString()`

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

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

- - ### Field Detail

    - #### v1

          public final T1 v1

    - #### v2

          public final T2 v2

  - ### Constructor Detail

    - #### Tuples.Tuple2

          public Tuples.Tuple2(T1 v1,
                       T2 v2)

  - ### Method Detail

    - #### compareTo

          public int compareTo(Tuples.Tuple2<T1,T2> that)

      Specified by:
        `compareTo` in interface `Comparable<Tuples.Tuple2<T1,T2>>`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals(Object obj)

      Overrides:
        `equals` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

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