java.lang.Object
java.lang.Record
dev.secondsun.geometry.Quad
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionA()Returns the value of theArecord component.B()Returns the value of theBrecord component.C()Returns the value of theCrecord component.D()Returns the value of theDrecord component.booleanIndicates whether some other object is "equal to" this one.inthashCode()Returns a hash code value for this object.toString()Returns a string representation of this record class.
-
Constructor Details
-
Quad
Creates an instance of aQuadrecord class.- Parameters:
A- the value for theArecord componentB- the value for theBrecord componentC- the value for theCrecord componentD- the value for theDrecord 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). -
A
Returns the value of theArecord component.- Returns:
- the value of the
Arecord component
-
B
Returns the value of theBrecord component.- Returns:
- the value of the
Brecord component
-
C
Returns the value of theCrecord component.- Returns:
- the value of the
Crecord component
-
D
Returns the value of theDrecord component.- Returns:
- the value of the
Drecord component
-