Package com.plotsquared.core.setup
Record Class SettingsNodesWrapper
java.lang.Object
java.lang.Record
com.plotsquared.core.setup.SettingsNodesWrapper
public record SettingsNodesWrapper(ConfigurationNode[] settingsNodes, SetupStep afterwards)
extends Record
This class wraps an array of
ConfigurationNodes.-
Constructor Summary
ConstructorsConstructorDescriptionSettingsNodesWrapper(ConfigurationNode[] settingsNodes, SetupStep afterwards) Creates an instance of aSettingsNodesWrapperrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theafterwardsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the first step of this wrapper or the step or theafterwardsstep if no step is available.final inthashCode()Returns a hash code value for this object.Returns the value of thesettingsNodesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SettingsNodesWrapper
Creates an instance of aSettingsNodesWrapperrecord class.- Parameters:
settingsNodes- the value for thesettingsNodesrecord componentafterwards- the value for theafterwardsrecord component
-
-
Method Details
-
getFirstStep
Returns the first step of this wrapper or the step or theafterwardsstep if no step is available.- Returns:
- the first step or
afterwards.
-
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
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). -
settingsNodes
Returns the value of thesettingsNodesrecord component.- Returns:
- the value of the
settingsNodesrecord component
-
afterwards
Returns the value of theafterwardsrecord component.- Returns:
- the value of the
afterwardsrecord component
-