Record Class SiteLayoutUpdate
java.lang.Object
java.lang.Record
io.meeds.layout.model.SiteLayoutUpdate
public record SiteLayoutUpdate(SiteContainerDescription leftSidebar, SiteContainerDescription rightSidebar, List<SiteContainerDescription> topbars, List<SiteContainerDescription> bottomBars)
extends Record
The four arguments of set_site_layout: a sidebar or a list absent from the
call means no such container, since the call replaces the whole structure
-
Constructor Summary
ConstructorsConstructorDescriptionSiteLayoutUpdate(SiteContainerDescription leftSidebar, SiteContainerDescription rightSidebar, List<SiteContainerDescription> topbars, List<SiteContainerDescription> bottomBars) Creates an instance of aSiteLayoutUpdaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebottomBarsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theleftSidebarrecord component.Returns the value of therightSidebarrecord component.topbars()Returns the value of thetopbarsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SiteLayoutUpdate
public SiteLayoutUpdate(SiteContainerDescription leftSidebar, SiteContainerDescription rightSidebar, List<SiteContainerDescription> topbars, List<SiteContainerDescription> bottomBars) Creates an instance of aSiteLayoutUpdaterecord class.- Parameters:
leftSidebar- the value for theleftSidebarrecord componentrightSidebar- the value for therightSidebarrecord componenttopbars- the value for thetopbarsrecord componentbottomBars- the value for thebottomBarsrecord 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). -
leftSidebar
Returns the value of theleftSidebarrecord component.- Returns:
- the value of the
leftSidebarrecord component
-
rightSidebar
Returns the value of therightSidebarrecord component.- Returns:
- the value of the
rightSidebarrecord component
-
topbars
Returns the value of thetopbarsrecord component.- Returns:
- the value of the
topbarsrecord component
-
bottomBars
Returns the value of thebottomBarsrecord component.- Returns:
- the value of the
bottomBarsrecord component
-