Record Class GridSlot
java.lang.Object
java.lang.Record
com.ultikits.ultitools.ui.GridSlot
- Record Components:
row- row 0..5column- column 0..8
A cell; zero-based.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionGridSlot(int row, int column) Creates an instance of aGridSlotrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolumn()Returns the value of thecolumnrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intindex()row * 9 + column.static GridSlotof(int row, int column) Same as the canonical constructor.static GridSlotofIndex(int index) introw()Returns the value of therowrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
GridSlot
-
-
Method Details
-
of
Same as the canonical constructor. -
index
public int index()row * 9 + column. -
ofIndex
- Throws:
IllegalArgumentException- ifindexis outside 0..53
-
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. -
row
-
column
-