Module org.seasar.doma.core
Class Tuple5<T1,T2,T3,T4,T5>
java.lang.Object
org.seasar.doma.jdbc.criteria.tuple.Tuple5<T1,T2,T3,T4,T5>
- Type Parameters:
T1- the type of the first elementT2- the type of the second elementT3- the type of the third elementT4- the type of the fourth elementT5- the type of the fifth element
A tuple class that holds five elements of potentially different types.
This class is used in the criteria API to represent quintuplets of values returned from database queries, allowing for type-safe access to multiple columns in query results.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.booleanCompares this tuple with the specified object for equality.getItem1()Returns the first element of this tuple.getItem2()Returns the second element of this tuple.getItem3()Returns the third element of this tuple.getItem4()Returns the fourth element of this tuple.getItem5()Returns the fifth element of this tuple.inthashCode()Returns the hash code value for this tuple.toString()Returns a string representation of this tuple.
-
Constructor Details
-
Tuple5
Constructs a new tuple with the specified elements.- Parameters:
item1- the first elementitem2- the second elementitem3- the third elementitem4- the fourth elementitem5- the fifth element
-
-
Method Details
-
getItem1
Returns the first element of this tuple.- Returns:
- the first element
-
getItem2
Returns the second element of this tuple.- Returns:
- the second element
-
getItem3
Returns the third element of this tuple.- Returns:
- the third element
-
getItem4
Returns the fourth element of this tuple.- Returns:
- the fourth element
-
getItem5
Returns the fifth element of this tuple.- Returns:
- the fifth element
-
component1
Returns the first element of this tuple.This method provides Kotlin-style component access.
- Returns:
- the first element
-
component2
Returns the second element of this tuple.This method provides Kotlin-style component access.
- Returns:
- the second element
-
component3
Returns the third element of this tuple.This method provides Kotlin-style component access.
- Returns:
- the third element
-
component4
Returns the fourth element of this tuple.This method provides Kotlin-style component access.
- Returns:
- the fourth element
-
component5
Returns the fifth element of this tuple.This method provides Kotlin-style component access.
- Returns:
- the fifth element
-
equals
Compares this tuple with the specified object for equality. -
hashCode
public int hashCode()Returns the hash code value for this tuple. -
toString
Returns a string representation of this tuple.
-