Record Class AdminPanelRestController.MenuElement
java.lang.Object
java.lang.Record
eu.rarogsoftware.rarog.platform.app.rest.AdminPanelRestController.MenuElement
- Enclosing class:
- AdminPanelRestController
-
Constructor Summary
ConstructorsConstructorDescriptionMenuElement
(String key, String fullKey, String name, String keywords, String resource, boolean embedded, boolean navOnly, List<AdminPanelRestController.MenuElement> subElements) Creates an instance of aMenuElement
record class. -
Method Summary
Modifier and TypeMethodDescriptionboolean
embedded()
Returns the value of theembedded
record component.final boolean
Indicates whether some other object is "equal to" this one.fullKey()
Returns the value of thefullKey
record component.final int
hashCode()
Returns a hash code value for this object.key()
Returns the value of thekey
record component.keywords()
Returns the value of thekeywords
record component.name()
Returns the value of thename
record component.boolean
navOnly()
Returns the value of thenavOnly
record component.resource()
Returns the value of theresource
record component.Returns the value of thesubElements
record component.final String
toString()
Returns a string representation of this record class.
-
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 aMenuElement
record class.- Parameters:
key
- the value for thekey
record componentfullKey
- the value for thefullKey
record componentname
- the value for thename
record componentkeywords
- the value for thekeywords
record componentresource
- the value for theresource
record componentembedded
- the value for theembedded
record componentnavOnly
- the value for thenavOnly
record componentsubElements
- the value for thesubElements
record 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 '=='. -
key
Returns the value of thekey
record component.- Returns:
- the value of the
key
record component
-
fullKey
Returns the value of thefullKey
record component.- Returns:
- the value of the
fullKey
record component
-
name
Returns the value of thename
record component.- Returns:
- the value of the
name
record component
-
keywords
Returns the value of thekeywords
record component.- Returns:
- the value of the
keywords
record component
-
resource
Returns the value of theresource
record component.- Returns:
- the value of the
resource
record component
-
embedded
public boolean embedded()Returns the value of theembedded
record component.- Returns:
- the value of the
embedded
record component
-
subElements
Returns the value of thesubElements
record component.- Returns:
- the value of the
subElements
record component
-