Package org.jparsec.containers.seq
Record Class Tuple4<T,U,W,Z>
java.lang.Object
java.lang.Record
org.jparsec.containers.seq.Tuple4<T,U,W,Z>
- All Implemented Interfaces:
SeqOps
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.four()Returns the value of thefourrecord component.final inthashCode()Returns a hash code value for this object.one()Returns the value of theonerecord component.three()Returns the value of thethreerecord component.final StringtoString()Returns a string representation of this record class.two()Returns the value of thetworecord component.
-
Constructor Details
-
Tuple4
Creates an instance of aTuple4record class.- Parameters:
one- the value for theonerecord componenttwo- the value for thetworecord componentthree- the value for thethreerecord componentfour- the value for thefourrecord component
-
-
Method Details
-
str
-
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). -
one
Returns the value of theonerecord component.- Returns:
- the value of the
onerecord component
-
two
Returns the value of thetworecord component.- Returns:
- the value of the
tworecord component
-
three
Returns the value of thethreerecord component.- Returns:
- the value of the
threerecord component
-
four
Returns the value of thefourrecord component.- Returns:
- the value of the
fourrecord component
-