Record Class TopbarDisplayOptions
java.lang.Object
java.lang.Record
io.meeds.layout.model.TopbarDisplayOptions
public record TopbarDisplayOptions(Boolean displayCompanyName, Boolean displaySiteName, Boolean displayMobileCompanyLogo, List<TopbarApplicationOption> applications)
extends Record
What the topbar shows: on input, a null field leaves its stored value and
the applications listed are merged into the stored list, each named by
identifier or by the name shown in the user's language; on output, every
field as stored, each application named in the user's language.
-
Constructor Summary
ConstructorsConstructorDescriptionTopbarDisplayOptions(Boolean displayCompanyName, Boolean displaySiteName, Boolean displayMobileCompanyLogo, List<TopbarApplicationOption> applications) Creates an instance of aTopbarDisplayOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplicationsrecord component.Returns the value of thedisplayCompanyNamerecord component.Returns the value of thedisplayMobileCompanyLogorecord component.Returns the value of thedisplaySiteNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TopbarDisplayOptions
public TopbarDisplayOptions(Boolean displayCompanyName, Boolean displaySiteName, Boolean displayMobileCompanyLogo, List<TopbarApplicationOption> applications) Creates an instance of aTopbarDisplayOptionsrecord class.- Parameters:
displayCompanyName- the value for thedisplayCompanyNamerecord componentdisplaySiteName- the value for thedisplaySiteNamerecord componentdisplayMobileCompanyLogo- the value for thedisplayMobileCompanyLogorecord componentapplications- the value for theapplicationsrecord 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). -
displayCompanyName
Returns the value of thedisplayCompanyNamerecord component.- Returns:
- the value of the
displayCompanyNamerecord component
-
displaySiteName
Returns the value of thedisplaySiteNamerecord component.- Returns:
- the value of the
displaySiteNamerecord component
-
displayMobileCompanyLogo
Returns the value of thedisplayMobileCompanyLogorecord component.- Returns:
- the value of the
displayMobileCompanyLogorecord component
-
applications
Returns the value of theapplicationsrecord component.- Returns:
- the value of the
applicationsrecord component
-