Record Class ZoneCreator.Rectangle
java.lang.Object
java.lang.Record
zombie.pathfind.extra.ZoneCreator.Rectangle
- Enclosing class:
ZoneCreator
public static record ZoneCreator.Rectangle(int xmin, int xmax, int ymin, int ymax, int z)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionRectangle(int xmin, int xmax, int ymin, int ymax, int z) Creates an instance of aRectanglerecord 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.intxmax()Returns the value of thexmaxrecord component.intxmin()Returns the value of thexminrecord component.intymax()Returns the value of theymaxrecord component.intymin()Returns the value of theyminrecord component.intz()Returns the value of thezrecord component.
-
Constructor Details
-
Rectangle
public Rectangle(int xmin, int xmax, int ymin, int ymax, int z) Creates an instance of aRectanglerecord class.- Parameters:
xmin- the value for thexminrecord componentxmax- the value for thexmaxrecord componentymin- the value for theyminrecord componentymax- the value for theymaxrecord componentz- the value for thezrecord 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. -
xmin
public int xmin()Returns the value of thexminrecord component.- Returns:
- the value of the
xminrecord component
-
xmax
public int xmax()Returns the value of thexmaxrecord component.- Returns:
- the value of the
xmaxrecord component
-
ymin
public int ymin()Returns the value of theyminrecord component.- Returns:
- the value of the
yminrecord component
-
ymax
public int ymax()Returns the value of theymaxrecord component.- Returns:
- the value of the
ymaxrecord component
-
z
public int z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-