Record Class Position
java.lang.Object
java.lang.Record
dev.despical.pixelpainter.core.Position
- Record Components:
x- world X coordinatey- world Y coordinatez- world Z coordinate
Identifies one integer block coordinate without retaining a live world object.
Positions can be transferred between image planning, geometry and journal I/O. The caller supplies the world separately; negative coordinates are valid.
-
Constructor Summary
ConstructorsConstructorDescriptionPosition(int x, int y, int z) Creates an instance of aPositionrecord 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.intx()Returns the value of thexrecord component.inty()Returns the value of theyrecord component.intz()Returns the value of thezrecord component.
-
Constructor Details
-
Position
-
-
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. -
x
-
y
-
z
-