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 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 a SectionDescription record class.
      Parameters:
      sectionId - the value for the sectionId record component
      type - the value for the type record component
      columns - the value for the columns record component
      rows - the value for the rows record component
      columnsContent - the value for the columnsContent record component
      cells - the value for the cells record component
      styling - the value for the styling record component
      display - the value for the display record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • sectionId

      public String sectionId()
      Returns the value of the sectionId record component.
      Returns:
      the value of the sectionId record component
    • type

      public SectionType type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • columns

      public Integer columns()
      Returns the value of the columns record component.
      Returns:
      the value of the columns record component
    • rows

      public Integer rows()
      Returns the value of the rows record component.
      Returns:
      the value of the rows record component
    • columnsContent

      public List<List<ApplicationDescription>> columnsContent()
      Returns the value of the columnsContent record component.
      Returns:
      the value of the columnsContent record component
    • cells

      public List<CellDescription> cells()
      Returns the value of the cells record component.
      Returns:
      the value of the cells record component
    • styling

      public StylingDescription styling()
      Returns the value of the styling record component.
      Returns:
      the value of the styling record component
    • display

      public DisplayMode display()
      Returns the value of the display record component.
      Returns:
      the value of the display record component