Record Class ServerSettingsImpl
java.lang.Object
java.lang.Record
com.soulfiremc.server.settings.lib.ServerSettingsImpl
- All Implemented Interfaces:
ServerSettingsSource, SettingsSource<SettingsSource.Server>
public record ServerSettingsImpl(ServerSettingsImpl.Stem stem)
extends Record
implements ServerSettingsSource
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface SettingsSource
SettingsSource.Bot, SettingsSource.CustomIntSupplier, SettingsSource.Instance, SettingsSource.Server, SettingsSource.SourceType -
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of aServerSettingsImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Optional<com.google.gson.JsonElement> get(Property<SettingsSource.Server> property) final inthashCode()Returns a hash code value for this object.stem()Returns the value of thestemrecord component.final StringtoString()Returns a string representation of this record class.@NotNull ServerSettingsImpl
-
Constructor Details
-
ServerSettingsImpl
Creates an instance of aServerSettingsImplrecord class.- Parameters:
stem- the value for thestemrecord component
-
-
Method Details
-
get
- Specified by:
getin interfaceSettingsSource<SettingsSource.Server>
-
withStem
- Returns:
this.
-
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). -
stem
Returns the value of thestemrecord component.- Specified by:
stemin interfaceServerSettingsSource- Specified by:
stemin interfaceSettingsSource<SettingsSource.Server>- Returns:
- the value of the
stemrecord component
-