Record Class CellDescription
java.lang.Object
java.lang.Record
io.meeds.layout.model.CellDescription
public record CellDescription(String cellId, int row, int column, Integer rowSpan, Integer columnSpan, ApplicationDescription application)
extends Record
A grid cell: row and column are 1-based, as the editor numbers them
-
Constructor Summary
ConstructorsConstructorDescriptionCellDescription(String cellId, int row, int column, Integer rowSpan, Integer columnSpan, ApplicationDescription application) Creates an instance of aCellDescriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplicationrecord component.cellId()Returns the value of thecellIdrecord component.intcolumn()Returns the value of thecolumnrecord component.Returns the value of thecolumnSpanrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.introw()Returns the value of therowrecord component.rowSpan()Returns the value of therowSpanrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CellDescription
public CellDescription(String cellId, int row, int column, Integer rowSpan, Integer columnSpan, ApplicationDescription application) Creates an instance of aCellDescriptionrecord class.- Parameters:
cellId- the value for thecellIdrecord componentrow- the value for therowrecord componentcolumn- the value for thecolumnrecord componentrowSpan- the value for therowSpanrecord componentcolumnSpan- the value for thecolumnSpanrecord componentapplication- the value for theapplicationrecord 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. -
cellId
Returns the value of thecellIdrecord component.- Returns:
- the value of the
cellIdrecord component
-
row
public int row()Returns the value of therowrecord component.- Returns:
- the value of the
rowrecord component
-
column
public int column()Returns the value of thecolumnrecord component.- Returns:
- the value of the
columnrecord component
-
rowSpan
Returns the value of therowSpanrecord component.- Returns:
- the value of the
rowSpanrecord component
-
columnSpan
Returns the value of thecolumnSpanrecord component.- Returns:
- the value of the
columnSpanrecord component
-
application
Returns the value of theapplicationrecord component.- Returns:
- the value of the
applicationrecord component
-