Record Class ServerSettingsImpl
java.lang.Object
java.lang.Record
com.soulfiremc.server.settings.lib.ServerSettingsImpl
- All Implemented Interfaces:
ServerSettingsSource, SettingsSource
-
Nested Class Summary
Nested classes/interfaces inherited from interface SettingsSource
SettingsSource.CustomIntSupplier -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionServerSettingsImpl(Map<String, Map<String, com.google.gson.JsonElement>> settings) Creates an instance of aServerSettingsImplrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerSettingsImpldeserialize(com.google.gson.JsonElement json) final booleanIndicates whether some other object is "equal to" this one.static ServerSettingsImplfromProto(ServerConfig request) Optional<com.google.gson.JsonElement> 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.@NotNull ServerSettingsImplwithSettings(Map<String, Map<String, com.google.gson.JsonElement>> settings)
-
Field Details
-
EMPTY
-
-
Constructor Details
-
ServerSettingsImpl
-
-
Method Details
-
deserialize
-
fromProto
-
serializeToTree
public com.google.gson.JsonObject serializeToTree() -
toProto
-
get
- Specified by:
getin interfaceSettingsSource
-
withSettings
@NotNull public @NotNull ServerSettingsImpl 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
-