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, String actionId, List<MenuOptionDto> submenus, int order, boolean visible, boolean selected, boolean disabled, boolean disabledOnClick, String className, Object itemData, boolean separator) extends Record
  • Constructor Summary

    Constructors
    Constructor
    Description
    MenuOptionDto(MenuTypeDto type, String icon, String label, ComponentDto component, GoToRouteDto destination, String actionId, List<MenuOptionDto> submenus, int order, boolean visible, boolean selected, boolean disabled, boolean disabledOnClick, String className, Object itemData, boolean separator)
    Creates an instance of a MenuOptionDto record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the value of the actionId record component.
    Returns the value of the className record component.
    Returns the value of the component record component.
    Returns the value of the destination record component.
    boolean
    Returns the value of the disabled record component.
    boolean
    Returns the value of the disabledOnClick record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    final int
    Returns a hash code value for this object.
    Returns the value of the icon record component.
    Returns the value of the itemData record component.
    Returns the value of the label record component.
    int
    Returns the value of the order record component.
    boolean
    Returns the value of the selected record component.
    boolean
    Returns the value of the separator record component.
    Returns the value of the submenus record component.
    final String
    Returns a string representation of this record class.
    Returns the value of the type record component.
    boolean
    Returns the value of the visible record component.

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • MenuOptionDto

      public MenuOptionDto(MenuTypeDto type, String icon, String label, ComponentDto component, GoToRouteDto destination, String actionId, List<MenuOptionDto> submenus, int order, boolean visible, boolean selected, boolean disabled, boolean disabledOnClick, String className, Object itemData, boolean separator)
      Creates an instance of a MenuOptionDto record class.
      Parameters:
      type - the value for the type record component
      icon - the value for the icon record component
      label - the value for the label record component
      component - the value for the component record component
      destination - the value for the destination record component
      actionId - the value for the actionId record component
      submenus - the value for the submenus record component
      order - the value for the order record component
      visible - the value for the visible record component
      selected - the value for the selected record component
      disabled - the value for the disabled record component
      disabledOnClick - the value for the disabledOnClick record component
      className - the value for the className record component
      itemData - the value for the itemData record component
      separator - the value for the separator record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • type

      public MenuTypeDto type()
      Returns the value of the type record component.
      Returns:
      the value of the type record component
    • icon

      public String icon()
      Returns the value of the icon record component.
      Returns:
      the value of the icon record component
    • label

      public String label()
      Returns the value of the label record component.
      Returns:
      the value of the label record component
    • component

      public ComponentDto component()
      Returns the value of the component record component.
      Returns:
      the value of the component record component
    • destination

      public GoToRouteDto destination()
      Returns the value of the destination record component.
      Returns:
      the value of the destination record component
    • actionId

      public String actionId()
      Returns the value of the actionId record component.
      Returns:
      the value of the actionId record component
    • order

      public int order()
      Returns the value of the order record component.
      Returns:
      the value of the order record component
    • visible

      public boolean visible()
      Returns the value of the visible record component.
      Returns:
      the value of the visible record component
    • selected

      public boolean selected()
      Returns the value of the selected record component.
      Returns:
      the value of the selected record component
    • disabled

      public boolean disabled()
      Returns the value of the disabled record component.
      Returns:
      the value of the disabled record component
    • disabledOnClick

      public boolean disabledOnClick()
      Returns the value of the disabledOnClick record component.
      Returns:
      the value of the disabledOnClick record component
    • className

      public String className()
      Returns the value of the className record component.
      Returns:
      the value of the className record component
    • itemData

      public Object itemData()
      Returns the value of the itemData record component.
      Returns:
      the value of the itemData record component
    • separator

      public boolean separator()
      Returns the value of the separator record component.
      Returns:
      the value of the separator record component