Class Tuple6<T1,T2,T3,T4,T5,T6>

java.lang.Object
org.seasar.doma.jdbc.criteria.tuple.Tuple6<T1,T2,T3,T4,T5,T6>
Type Parameters:
T1 - the type of the first element
T2 - the type of the second element
T3 - the type of the third element
T4 - the type of the fourth element
T5 - the type of the fifth element
T6 - the type of the sixth element

public final class Tuple6<T1,T2,T3,T4,T5,T6> extends Object
A tuple class that holds six elements of potentially different types.

This class is used in the criteria API to represent sextuplets of values returned from database queries, allowing for type-safe access to multiple columns in query results.

  • Constructor Summary

    Constructors
    Constructor
    Description
    Tuple6(T1 item1, T2 item2, T3 item3, T4 item4, T5 item5, T6 item6)
    Constructs a new tuple with the specified elements.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the first element of this tuple.
    Returns the second element of this tuple.
    Returns the third element of this tuple.
    Returns the fourth element of this tuple.
    Returns the fifth element of this tuple.
    Returns the sixth element of this tuple.
    boolean
    Compares this tuple with the specified object for equality.
    Returns the first element of this tuple.
    Returns the second element of this tuple.
    Returns the third element of this tuple.
    Returns the fourth element of this tuple.
    Returns the fifth element of this tuple.
    Returns the sixth element of this tuple.
    int
    Returns the hash code value for this tuple.
    Returns a string representation of this tuple.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • Tuple6

      public Tuple6(T1 item1, T2 item2, T3 item3, T4 item4, T5 item5, T6 item6)
      Constructs a new tuple with the specified elements.
      Parameters:
      item1 - the first element
      item2 - the second element
      item3 - the third element
      item4 - the fourth element
      item5 - the fifth element
      item6 - the sixth element
  • Method Details

    • getItem1

      public T1 getItem1()
      Returns the first element of this tuple.
      Returns:
      the first element
    • getItem2

      public T2 getItem2()
      Returns the second element of this tuple.
      Returns:
      the second element
    • getItem3

      public T3 getItem3()
      Returns the third element of this tuple.
      Returns:
      the third element
    • getItem4

      public T4 getItem4()
      Returns the fourth element of this tuple.
      Returns:
      the fourth element
    • getItem5

      public T5 getItem5()
      Returns the fifth element of this tuple.
      Returns:
      the fifth element
    • getItem6

      public T6 getItem6()
      Returns the sixth element of this tuple.
      Returns:
      the sixth element
    • component1

      public T1 component1()
      Returns the first element of this tuple.

      This method provides Kotlin-style component access.

      Returns:
      the first element
    • component2

      public T2 component2()
      Returns the second element of this tuple.

      This method provides Kotlin-style component access.

      Returns:
      the second element
    • component3

      public T3 component3()
      Returns the third element of this tuple.

      This method provides Kotlin-style component access.

      Returns:
      the third element
    • component4

      public T4 component4()
      Returns the fourth element of this tuple.

      This method provides Kotlin-style component access.

      Returns:
      the fourth element
    • component5

      public T5 component5()
      Returns the fifth element of this tuple.

      This method provides Kotlin-style component access.

      Returns:
      the fifth element
    • component6

      public T6 component6()
      Returns the sixth element of this tuple.

      This method provides Kotlin-style component access.

      Returns:
      the sixth element
    • equals

      public boolean equals(Object o)
      Compares this tuple with the specified object for equality.
      Overrides:
      equals in class Object
      Parameters:
      o - the object to compare with
      Returns:
      true if the objects are equal, false otherwise
    • hashCode

      public int hashCode()
      Returns the hash code value for this tuple.
      Overrides:
      hashCode in class Object
      Returns:
      the hash code value
    • toString

      public String toString()
      Returns a string representation of this tuple.
      Overrides:
      toString in class Object
      Returns:
      a string representation