Record Class SpherePoints.Row
java.lang.Object
java.lang.Record
dev.latvian.mods.klib.shape.SpherePoints.Row
- Enclosing class:
SpherePoints
-
Constructor Summary
ConstructorsConstructorDescriptionRow(int index, float v, float y, float m) Creates an instance of aRowrecord 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.intindex()Returns the value of theindexrecord component.floatm()Returns the value of themrecord component.final StringtoString()Returns a string representation of this record class.floatv()Returns the value of thevrecord component.floaty()Returns the value of theyrecord component.
-
Constructor Details
-
Row
public Row(int index, float v, float y, float m) Creates an instance of aRowrecord class.- Parameters:
index- the value for theindexrecord componentv- the value for thevrecord componenty- the value for theyrecord componentm- the value for themrecord 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 with thecomparemethod from their corresponding wrapper classes. -
index
public int index()Returns the value of theindexrecord component.- Returns:
- the value of the
indexrecord component
-
v
public float v()Returns the value of thevrecord component.- Returns:
- the value of the
vrecord component
-
y
public float y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
m
public float m()Returns the value of themrecord component.- Returns:
- the value of the
mrecord component
-