Package io.activej.common.tuple
Record Class Tuple5<T1,T2,T3,T4,T5>
java.lang.Object
java.lang.Record
io.activej.common.tuple.Tuple5<T1,T2,T3,T4,T5>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.value1()Returns the value of thevalue1record component.value2()Returns the value of thevalue2record component.value3()Returns the value of thevalue3record component.value4()Returns the value of thevalue4record component.value5()Returns the value of thevalue5record component.
-
Constructor Details
-
Tuple5
Creates an instance of aTuple5record class.- Parameters:
value1- the value for thevalue1record componentvalue2- the value for thevalue2record componentvalue3- the value for thevalue3record componentvalue4- the value for thevalue4record componentvalue5- the value for thevalue5record component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
value1
Returns the value of thevalue1record component.- Returns:
- the value of the
value1record component
-
value2
Returns the value of thevalue2record component.- Returns:
- the value of the
value2record component
-
value3
Returns the value of thevalue3record component.- Returns:
- the value of the
value3record component
-
value4
Returns the value of thevalue4record component.- Returns:
- the value of the
value4record component
-
value5
Returns the value of thevalue5record component.- Returns:
- the value of the
value5record component
-