Record Class ApplicationPosition

java.lang.Object
java.lang.Record
io.meeds.layout.model.ApplicationPosition

public record ApplicationPosition(String sectionId, String containerId, Integer column, Integer row, Integer index, String before, String after) extends Record
Where move_layout_application puts an application, as the read numbers it, every number counting from 1: in a dynamic section, the section, its column and, at most one of them, the index among the column's applications or the application it goes before or after, the end of the column otherwise; in a grid section, the section and the row and column of the cell; in a site container, the container and, at most one of them, the index, before or after, the end of the container otherwise
  • Constructor Details

    • ApplicationPosition

      public ApplicationPosition(String sectionId, String containerId, Integer column, Integer row, Integer index, String before, String after)
      Creates an instance of a ApplicationPosition record class.
      Parameters:
      sectionId - the value for the sectionId record component
      containerId - the value for the containerId record component
      column - the value for the column record component
      row - the value for the row record component
      index - the value for the index record component
      before - the value for the before record component
      after - the value for the after 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
    • containerId

      public String containerId()
      Returns the value of the containerId record component.
      Returns:
      the value of the containerId record component
    • column

      public Integer column()
      Returns the value of the column record component.
      Returns:
      the value of the column record component
    • row

      public Integer row()
      Returns the value of the row record component.
      Returns:
      the value of the row record component
    • index

      public Integer index()
      Returns the value of the index record component.
      Returns:
      the value of the index record component
    • before

      public String before()
      Returns the value of the before record component.
      Returns:
      the value of the before record component
    • after

      public String after()
      Returns the value of the after record component.
      Returns:
      the value of the after record component