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 aMenuElementrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanembedded()Returns the value of theembeddedrecord component.final booleanIndicates whether some other object is "equal to" this one.fullKey()Returns the value of thefullKeyrecord component.final inthashCode()Returns a hash code value for this object.key()Returns the value of thekeyrecord component.keywords()Returns the value of thekeywordsrecord component.name()Returns the value of thenamerecord component.booleannavOnly()Returns the value of thenavOnlyrecord component.resource()Returns the value of theresourcerecord component.Returns the value of thesubElementsrecord component.final StringtoString()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 aMenuElementrecord class.- Parameters:
key- the value for thekeyrecord componentfullKey- the value for thefullKeyrecord componentname- the value for thenamerecord componentkeywords- the value for thekeywordsrecord componentresource- the value for theresourcerecord componentembedded- the value for theembeddedrecord componentnavOnly- the value for thenavOnlyrecord componentsubElements- the value for thesubElementsrecord 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 thekeyrecord component.- Returns:
- the value of the
keyrecord component
-
fullKey
Returns the value of thefullKeyrecord component.- Returns:
- the value of the
fullKeyrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
keywords
Returns the value of thekeywordsrecord component.- Returns:
- the value of the
keywordsrecord component
-
resource
Returns the value of theresourcerecord component.- Returns:
- the value of the
resourcerecord component
-
embedded
public boolean embedded()Returns the value of theembeddedrecord component.- Returns:
- the value of the
embeddedrecord component
-
subElements
Returns the value of thesubElementsrecord component.- Returns:
- the value of the
subElementsrecord component
-