Package de.Keyle.MyPet.api.gui
Record Class FillSection.Region
java.lang.Object
java.lang.Record
de.Keyle.MyPet.api.gui.FillSection.Region
- Record Components:
col- left-hand columnrow- top rowwidth- width in slots, which must be positiveheight- height in slots, which must be positive
- Enclosing class:
FillSection
A rectangular part of the menu to fill, instead of the whole thing.
-
Constructor Summary
ConstructorsConstructorDescriptionRegion(int col, int row, int width, int height) Rejects a non-positive width or height. -
Method Summary
Modifier and TypeMethodDescriptionintcol()Returns the value of thecolrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.introw()Returns the value of therowrecord component.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.
-
Constructor Details
-
Region
public Region(int col, int row, int width, int height) Rejects a non-positive width or height.
-
-
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 with '=='. -
col
public int col()Returns the value of thecolrecord component.- Returns:
- the value of the
colrecord component
-
row
public int row()Returns the value of therowrecord component.- Returns:
- the value of the
rowrecord component
-
width
public int width()Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
public int height()Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-