Record Class GridGeometry
java.lang.Object
java.lang.Record
io.meeds.layout.model.GridGeometry
A grid section as the read numbers it: its rows and columns, and the cell
anchored at each position, keyed "row:column" from 1
-
Constructor Summary
ConstructorsConstructorDescriptionGridGeometry(int rows, int columns, Map<String, LayoutModel> anchors) Creates an instance of aGridGeometryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionanchors()Returns the value of theanchorsrecord component.intcolumns()Returns the value of thecolumnsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.introws()Returns the value of therowsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GridGeometry
Creates an instance of aGridGeometryrecord class.- Parameters:
rows- the value for therowsrecord componentcolumns- the value for thecolumnsrecord componentanchors- the value for theanchorsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
rows
public int rows()Returns the value of therowsrecord component.- Returns:
- the value of the
rowsrecord component
-
columns
public int columns()Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
anchors
Returns the value of theanchorsrecord component.- Returns:
- the value of the
anchorsrecord component
-