Class Tuple4<T1,T2,T3,T4>

java.lang.Object
org.seasar.doma.jdbc.criteria.tuple.Tuple4<T1,T2,T3,T4>
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

public final class Tuple4<T1,T2,T3,T4> extends Object
A tuple class that holds four elements of potentially different types.

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

  • Constructor Summary

    Constructors
    Constructor
    Description
    Tuple4(T1 item1, T2 item2, T3 item3, T4 item4)
    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.
    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.
    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

    • Tuple4

      public Tuple4(T1 item1, T2 item2, T3 item3, T4 item4)
      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
  • 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
    • 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
    • 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