Record Class AdminPanelRestController.MenuElement

java.lang.Object
java.lang.Record
eu.rarogsoftware.rarog.platform.app.rest.AdminPanelRestController.MenuElement
Enclosing class:
AdminPanelRestController

static record AdminPanelRestController.MenuElement(String key, String fullKey, String name, String keywords, String resource, boolean embedded, boolean navOnly, List<AdminPanelRestController.MenuElement> subElements) extends Record
  • Constructor Details

    • MenuElement

      MenuElement(String key, String fullKey, String name, String keywords, String resource, boolean embedded, boolean navOnly, List<AdminPanelRestController.MenuElement> subElements)
      Creates an instance of a MenuElement record class.
      Parameters:
      key - the value for the key record component
      fullKey - the value for the fullKey record component
      name - the value for the name record component
      keywords - the value for the keywords record component
      resource - the value for the resource record component
      embedded - the value for the embedded record component
      navOnly - the value for the navOnly record component
      subElements - the value for the subElements 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.
    • key

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

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

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

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

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

      public boolean embedded()
      Returns the value of the embedded record component.
      Returns:
      the value of the embedded record component
    • subElements

      Returns the value of the subElements record component.
      Returns:
      the value of the subElements record component