Record Class InstanceSettingsImpl.Stem
java.lang.Object
java.lang.Record
com.soulfiremc.server.settings.lib.InstanceSettingsImpl.Stem
- All Implemented Interfaces:
SettingsSource.Stem<SettingsSource.Instance>
- Enclosing class:
InstanceSettingsImpl
public static record InstanceSettingsImpl.Stem(Map<String, Map<String, com.google.gson.JsonElement>> settings, List<MinecraftAccount> accounts, List<SFProxy> proxies)
extends Record
implements SettingsSource.Stem<SettingsSource.Instance>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccounts()Returns the value of theaccountsrecord component.static InstanceSettingsImpl.Stemdeserialize(com.google.gson.JsonElement json) final booleanIndicates whether some other object is "equal to" this one.static InstanceSettingsImpl.StemfromProto(InstanceConfig request) final inthashCode()Returns a hash code value for this object.proxies()Returns the value of theproxiesrecord component.com.google.gson.JsonObjectsettings()Returns the value of thesettingsrecord component.toProto()final StringtoString()Returns a string representation of this record class.withAccounts(List<MinecraftAccount> accounts) withProxies(List<SFProxy> proxies) withSettings(Map<String, Map<String, com.google.gson.JsonElement>> settings) Methods inherited from interface SettingsSource.Stem
get, settingsToProto
-
Field Details
-
EMPTY
-
-
Constructor Details
-
Stem
public Stem(Map<String, Map<String, com.google.gson.JsonElement>> settings, List<MinecraftAccount> accounts, List<SFProxy> proxies) Creates an instance of aStemrecord class.- Parameters:
settings- the value for thesettingsrecord componentaccounts- the value for theaccountsrecord componentproxies- the value for theproxiesrecord component
-
-
Method Details
-
deserialize
-
fromProto
-
serializeToTree
public com.google.gson.JsonObject serializeToTree() -
toProto
-
withSettings
@NotNull public InstanceSettingsImpl.Stem withSettings(Map<String, Map<String, com.google.gson.JsonElement>> settings) - Returns:
this.
-
withAccounts
- Returns:
this.
-
withProxies
- 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.Instance>- Returns:
- the value of the
settingsrecord component
-
accounts
Returns the value of theaccountsrecord component.- Returns:
- the value of the
accountsrecord component
-
proxies
-