Record Class ServerSettingsImpl.Stem
java.lang.Object
java.lang.Record
com.soulfiremc.server.settings.lib.ServerSettingsImpl.Stem
- All Implemented Interfaces:
SettingsSource.Stem<SettingsSource.Server>
- Enclosing class:
ServerSettingsImpl
public static record ServerSettingsImpl.Stem(Map<String, Map<String, com.google.gson.JsonElement>> settings)
extends Record
implements SettingsSource.Stem<SettingsSource.Server>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerSettingsImpl.Stemdeserialize(com.google.gson.JsonElement json) final booleanIndicates whether some other object is "equal to" this one.static ServerSettingsImpl.StemfromProto(ServerConfig request) final inthashCode()Returns a hash code value for this object.com.google.gson.JsonObjectsettings()Returns the value of thesettingsrecord component.toProto()final StringtoString()Returns a string representation of this record class.withSettings(Map<String, Map<String, com.google.gson.JsonElement>> settings) Methods inherited from interface SettingsSource.Stem
get, settingsToProto
-
Field Details
-
EMPTY
-
-
Constructor Details
-
Stem
-
-
Method Details
-
deserialize
-
fromProto
-
serializeToTree
public com.google.gson.JsonObject serializeToTree() -
toProto
-
withSettings
@NotNull public ServerSettingsImpl.Stem withSettings(Map<String, Map<String, com.google.gson.JsonElement>> settings) - 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). -
settings
Returns the value of thesettingsrecord component.- Specified by:
settingsin interfaceSettingsSource.Stem<SettingsSource.Server>- Returns:
- the value of the
settingsrecord component
-