Record Class TopbarApplicationOption
java.lang.Object
java.lang.Record
io.meeds.layout.model.TopbarApplicationOption
public record TopbarApplicationOption(String id, String name, Boolean enabled, Boolean mobile)
extends Record
One application of the topbar: on input, the identifier names the stored
application, or its name as shown in the user's language when no
identifier is given, and a null field leaves its stored value; on output,
every field as stored, the name translated.
-
Constructor Summary
ConstructorsConstructorDescriptionTopbarApplicationOption(String id, String name, Boolean enabled, Boolean mobile) Creates an instance of aTopbarApplicationOptionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionenabled()Returns the value of theenabledrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.mobile()Returns the value of themobilerecord component.name()Returns the value of thenamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TopbarApplicationOption
Creates an instance of aTopbarApplicationOptionrecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentenabled- the value for theenabledrecord componentmobile- the value for themobilerecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
enabled
Returns the value of theenabledrecord component.- Returns:
- the value of the
enabledrecord component
-
mobile
Returns the value of themobilerecord component.- Returns:
- the value of the
mobilerecord component
-