Package io.mateu.dtos
Record Class MenuOptionDto
java.lang.Object
java.lang.Record
io.mateu.dtos.MenuOptionDto
public record MenuOptionDto(MenuTypeDto type, String icon, String label, ComponentDto component, GoToRouteDto destination, List<MenuOptionDto> submenus, int order, boolean visible, boolean selected, boolean disabled, boolean disabledOnClick, String className, Object itemData, boolean separator)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionMenuOptionDto(MenuTypeDto type, String icon, String label, ComponentDto component, GoToRouteDto destination, List<MenuOptionDto> submenus, int order, boolean visible, boolean selected, boolean disabled, boolean disabledOnClick, String className, Object itemData, boolean separator) Creates an instance of aMenuOptionDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclassNamerecord component.Returns the value of thecomponentrecord component.Returns the value of thedestinationrecord component.booleandisabled()Returns the value of thedisabledrecord component.booleanReturns the value of thedisabledOnClickrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.icon()Returns the value of theiconrecord component.itemData()Returns the value of theitemDatarecord component.label()Returns the value of thelabelrecord component.intorder()Returns the value of theorderrecord component.booleanselected()Returns the value of theselectedrecord component.booleanReturns the value of theseparatorrecord component.submenus()Returns the value of thesubmenusrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.booleanvisible()Returns the value of thevisiblerecord component.
-
Constructor Details
-
MenuOptionDto
public MenuOptionDto(MenuTypeDto type, String icon, String label, ComponentDto component, GoToRouteDto destination, List<MenuOptionDto> submenus, int order, boolean visible, boolean selected, boolean disabled, boolean disabledOnClick, String className, Object itemData, boolean separator) Creates an instance of aMenuOptionDtorecord class.- Parameters:
type- the value for thetyperecord componenticon- the value for theiconrecord componentlabel- the value for thelabelrecord componentcomponent- the value for thecomponentrecord componentdestination- the value for thedestinationrecord componentsubmenus- the value for thesubmenusrecord componentorder- the value for theorderrecord componentvisible- the value for thevisiblerecord componentselected- the value for theselectedrecord componentdisabled- the value for thedisabledrecord componentdisabledOnClick- the value for thedisabledOnClickrecord componentclassName- the value for theclassNamerecord componentitemData- the value for theitemDatarecord componentseparator- the value for theseparatorrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
icon
Returns the value of theiconrecord component.- Returns:
- the value of the
iconrecord component
-
label
Returns the value of thelabelrecord component.- Returns:
- the value of the
labelrecord component
-
component
Returns the value of thecomponentrecord component.- Returns:
- the value of the
componentrecord component
-
destination
Returns the value of thedestinationrecord component.- Returns:
- the value of the
destinationrecord component
-
order
public int order()Returns the value of theorderrecord component.- Returns:
- the value of the
orderrecord component
-
visible
public boolean visible()Returns the value of thevisiblerecord component.- Returns:
- the value of the
visiblerecord component
-
selected
public boolean selected()Returns the value of theselectedrecord component.- Returns:
- the value of the
selectedrecord component
-
disabled
public boolean disabled()Returns the value of thedisabledrecord component.- Returns:
- the value of the
disabledrecord component
-
disabledOnClick
public boolean disabledOnClick()Returns the value of thedisabledOnClickrecord component.- Returns:
- the value of the
disabledOnClickrecord component
-
className
Returns the value of theclassNamerecord component.- Returns:
- the value of the
classNamerecord component
-
itemData
Returns the value of theitemDatarecord component.- Returns:
- the value of the
itemDatarecord component
-
separator
public boolean separator()Returns the value of theseparatorrecord component.- Returns:
- the value of the
separatorrecord component