Record Class DefaultGroup
java.lang.Object
java.lang.Record
johnsmith.configoverhauled.impl.core.state.DefaultGroup
- All Implemented Interfaces:
Group
public record DefaultGroup(Category parent, String id, ConfigManager manager)
extends Record
implements Group
-
Nested Class Summary
Nested classes/interfaces inherited from interface Group
Group.IOptionalStep<T,B>, Group.IPropertyBuilder<T>, Group.IScopeStep, Group.ITypeStep -
Constructor Summary
ConstructorsConstructorDescriptionDefaultGroup(Category parent, String id, ConfigManager manager) Creates an instance of aDefaultGrouprecord class. -
Method Summary
Modifier and TypeMethodDescriptionInitiates the fluent builder sequence to construct and bind a new property to this group.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 group's registry.manager()Returns the value of themanagerrecord component.parent()Returns the value of theparentrecord component.voidSevers the structural bond between this group and the specified property.final StringtoString()Returns a string representation of this record class.Retrieves the base localization key utilized for client-side GUI translation.
-
Constructor Details
-
DefaultGroup
Creates an instance of aDefaultGrouprecord class.- Parameters:
parent- the value for theparentrecord componentid- the value for theidrecord componentmanager- the value for themanagerrecord component
-
-
Method Details
-
translationKey
Description copied from interface:GroupRetrieves the base localization key utilized for client-side GUI translation.- Specified by:
translationKeyin interfaceGroup- Returns:
- The formatted translation key string.
-
remove
-
isEmpty
-
define
Description copied from interface:GroupInitiates the fluent builder sequence to construct and bind a new property to this group. -
toString
-
hashCode
-
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). -
parent
-
id
-
manager
Returns the value of themanagerrecord component.
-