Package dev.aurelium.slate.menu
Record Class LoadedMenu
java.lang.Object
java.lang.Record
dev.aurelium.slate.menu.LoadedMenu
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecomponentsrecord component.final booleanIndicates whether some other object is "equal to" this one.fillData()Returns the value of thefillDatarecord component.formats()Returns the value of theformatsrecord component.final inthashCode()Returns a hash code value for this object.items()Returns the value of theitemsrecord component.name()Returns the value of thenamerecord component.options()Returns the value of theoptionsrecord component.intsize()Returns the value of thesizerecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LoadedMenu
public LoadedMenu(String name, String title, int size, Map<String, MenuItem> items, Map<String, MenuComponent> components, Map<String, String> formats, FillData fillData, Map<String, Object> options) Creates an instance of aLoadedMenurecord class.- Parameters:
name- the value for thenamerecord componenttitle- the value for thetitlerecord componentsize- the value for thesizerecord componentitems- the value for theitemsrecord componentcomponents- the value for thecomponentsrecord componentformats- the value for theformatsrecord componentfillData- the value for thefillDatarecord componentoptions- the value for theoptionsrecord 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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
size
public int size()Returns the value of thesizerecord component.- Returns:
- the value of the
sizerecord component
-
items
Returns the value of theitemsrecord component.- Returns:
- the value of the
itemsrecord component
-
components
Returns the value of thecomponentsrecord component.- Returns:
- the value of the
componentsrecord component
-
formats
Returns the value of theformatsrecord component.- Returns:
- the value of the
formatsrecord component
-
fillData
Returns the value of thefillDatarecord component.- Returns:
- the value of the
fillDatarecord component
-
options
Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-