Record Class SectionDescription
java.lang.Object
java.lang.Record
io.meeds.layout.model.SectionDescription
public record SectionDescription(String sectionId, SectionType type, Integer columns, Integer rows, List<List<ApplicationDescription>> columnsContent, List<CellDescription> cells, StylingDescription styling, DisplayMode display)
extends Record
A dynamic section carries columns and columnsContent (one ordered list of
applications per column); a grid section carries rows, columns and cells.
-
Constructor Summary
ConstructorsConstructorDescriptionSectionDescription(String sectionId, SectionType type, Integer columns, Integer rows, List<List<ApplicationDescription>> columnsContent, List<CellDescription> cells, StylingDescription styling, DisplayMode display) Creates an instance of aSectionDescriptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncells()Returns the value of thecellsrecord component.columns()Returns the value of thecolumnsrecord component.Returns the value of thecolumnsContentrecord component.display()Returns the value of thedisplayrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.rows()Returns the value of therowsrecord component.Returns the value of thesectionIdrecord component.styling()Returns the value of thestylingrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
SectionDescription
public SectionDescription(String sectionId, SectionType type, Integer columns, Integer rows, List<List<ApplicationDescription>> columnsContent, List<CellDescription> cells, StylingDescription styling, DisplayMode display) Creates an instance of aSectionDescriptionrecord class.- Parameters:
sectionId- the value for thesectionIdrecord componenttype- the value for thetyperecord componentcolumns- the value for thecolumnsrecord componentrows- the value for therowsrecord componentcolumnsContent- the value for thecolumnsContentrecord componentcells- the value for thecellsrecord componentstyling- the value for thestylingrecord componentdisplay- the value for thedisplayrecord 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 withObjects::equals(Object,Object). -
sectionId
Returns the value of thesectionIdrecord component.- Returns:
- the value of the
sectionIdrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
columns
Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
rows
Returns the value of therowsrecord component.- Returns:
- the value of the
rowsrecord component
-
columnsContent
Returns the value of thecolumnsContentrecord component.- Returns:
- the value of the
columnsContentrecord component
-
cells
Returns the value of thecellsrecord component.- Returns:
- the value of the
cellsrecord component
-
styling
Returns the value of thestylingrecord component.- Returns:
- the value of the
stylingrecord component
-
display
Returns the value of thedisplayrecord component.- Returns:
- the value of the
displayrecord component
-