Record Class ElementDisplay
java.lang.Object
java.lang.Record
io.meeds.layout.model.ElementDisplay
public record ElementDisplay(String elementId, DisplayMode display, StylingDescription styling)
extends Record
An element of set_layout_visibility: the id the read answers for a
section, an application, a topbar, a bottom bar or a sidebar, with the
device visibility it takes. The styling the read answers beside the
display is bound only to be refused, since an argument the binder does
not know is dropped without a word
-
Constructor Summary
ConstructorsConstructorDescriptionElementDisplay(String elementId, DisplayMode display, StylingDescription styling) Creates an instance of aElementDisplayrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondisplay()Returns the value of thedisplayrecord component.Returns the value of theelementIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.styling()Returns the value of thestylingrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ElementDisplay
Creates an instance of aElementDisplayrecord class.- Parameters:
elementId- the value for theelementIdrecord componentdisplay- the value for thedisplayrecord componentstyling- the value for thestylingrecord 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). -
elementId
Returns the value of theelementIdrecord component.- Returns:
- the value of the
elementIdrecord component
-
display
Returns the value of thedisplayrecord component.- Returns:
- the value of the
displayrecord component
-
styling
Returns the value of thestylingrecord component.- Returns:
- the value of the
stylingrecord component
-