Package io.fleetcoreplatform.Models
Record Class XYArrays
java.lang.Object
java.lang.Record
io.fleetcoreplatform.Models.XYArrays
- Record Components:
xs- Sequence of longitudinal or X-axis values.ys- Sequence of latitudinal or Y-axis values.
A lightweight carrier for parallel coordinate arrays. Extracts vertex structures into flat arrays
for cache-friendly matrix and vector calculations.
-
Constructor Summary
ConstructorsConstructorDescriptionXYArrays(double[] xs, double[] ys) Creates an instance of aXYArraysrecord class. -
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.double[]xs()Returns the value of thexsrecord component.double[]ys()Returns the value of theysrecord component.
-
Constructor Details
-
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). -
xs
public double[] xs()Returns the value of thexsrecord component.- Returns:
- the value of the
xsrecord component
-
ys
public double[] ys()Returns the value of theysrecord component.- Returns:
- the value of the
ysrecord component
-