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 johnsmith.configoverhauled.api.Group
Group.IOptionalStep<T,B extends 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
Description copied from interface:GroupSevers the structural bond between this group and the specified property. -
isEmpty
public boolean isEmpty()Description copied from interface:GroupEvaluates the active state of the group's registry. -
define
Description copied from interface:GroupInitiates the fluent builder sequence to construct and bind a new property to this group. -
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). -
parent
Returns the value of theparentrecord component. -
id
Returns the value of theidrecord component. -
manager
Returns the value of themanagerrecord component.
-