Record Class Codec.Tuple4<A,B,C,D>
java.lang.Object
java.lang.Record
com.github.darksoulq.abyssallib.common.serialization.Codec.Tuple4<A,B,C,D>
- Type Parameters:
A- Type of the first element.B- Type of the second element.C- Type of the third element.D- Type of the fourth element.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.first()Returns the value of thefirstrecord component.fourth()Returns the value of thefourthrecord component.final inthashCode()Returns a hash code value for this object.second()Returns the value of thesecondrecord component.third()Returns the value of thethirdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Tuple4
Creates an instance of aTuple4record class.- Parameters:
first- the value for thefirstrecord componentsecond- the value for thesecondrecord componentthird- the value for thethirdrecord componentfourth- the value for thefourthrecord component
-
-
Method Details
-
toString
-
hashCode
-
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). -
first
Returns the value of thefirstrecord component.- Returns:
- the value of the
firstrecord component
-
second
Returns the value of thesecondrecord component.- Returns:
- the value of the
secondrecord component
-
third
Returns the value of thethirdrecord component.- Returns:
- the value of the
thirdrecord component
-
fourth
Returns the value of thefourthrecord component.- Returns:
- the value of the
fourthrecord component
-