Record Class SidebarDisplayOptions
java.lang.Object
java.lang.Record
io.meeds.layout.model.SidebarDisplayOptions
public record SidebarDisplayOptions(Boolean allowUserCustomHome, List<String> allowedModes, String defaultMode)
extends Record
How the sidebar may be displayed: on input, a null field leaves its stored
value and the allowed modes replace the stored list; on output, every field
as stored. Modes are hidden, icon and sticky.
-
Constructor Summary
ConstructorsConstructorDescriptionSidebarDisplayOptions(Boolean allowUserCustomHome, List<String> allowedModes, String defaultMode) Creates an instance of aSidebarDisplayOptionsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theallowedModesrecord component.Returns the value of theallowUserCustomHomerecord component.Returns the value of thedefaultModerecord 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
-
SidebarDisplayOptions
public SidebarDisplayOptions(Boolean allowUserCustomHome, List<String> allowedModes, String defaultMode) Creates an instance of aSidebarDisplayOptionsrecord class.- Parameters:
allowUserCustomHome- the value for theallowUserCustomHomerecord componentallowedModes- the value for theallowedModesrecord componentdefaultMode- the value for thedefaultModerecord 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). -
allowUserCustomHome
Returns the value of theallowUserCustomHomerecord component.- Returns:
- the value of the
allowUserCustomHomerecord component
-
allowedModes
-
defaultMode
Returns the value of thedefaultModerecord component.- Returns:
- the value of the
defaultModerecord component
-