Record Class DefaultCategory
java.lang.Object
java.lang.Record
johnsmith.configoverhauled.impl.core.state.DefaultCategory
- All Implemented Interfaces:
Category
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCategory(String id, ConfigManager manager) Creates an instance of aDefaultCategoryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionAllocates or retrieves a subsidiary structural group within this category.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.booleanisEmpty()Evaluates the active state of the category's structural hierarchy.manager()Returns the value of themanagerrecord component.voidSevers the structural bond between this category and the specified group.final StringtoString()Returns a string representation of this record class.Retrieves the base localization key utilized for client-side GUI translation.
-
Constructor Details
-
DefaultCategory
Creates an instance of aDefaultCategoryrecord class.- Parameters:
id- the value for theidrecord componentmanager- the value for themanagerrecord component
-
-
Method Details
-
translationKey
Description copied from interface:CategoryRetrieves the base localization key utilized for client-side GUI translation.- Specified by:
translationKeyin interfaceCategory- Returns:
- The formatted translation key string.
-
define
Description copied from interface:CategoryAllocates or retrieves a subsidiary structural group within this category. -
remove
Description copied from interface:CategorySevers the structural bond between this category and the specified group. -
isEmpty
public boolean isEmpty()Description copied from interface:CategoryEvaluates the active state of the category's structural hierarchy. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component. -
manager
Returns the value of themanagerrecord component.
-