Record Class SyncProxyConfiguration
java.lang.Object
java.lang.Record
eu.cloudnetservice.modules.syncproxy.config.SyncProxyConfiguration
public record SyncProxyConfiguration(@Unmodifiable @NonNull Set<SyncProxyLoginConfiguration> loginConfigurations, @Unmodifiable @NonNull Set<SyncProxyTabListConfiguration> tabListConfigurations, @Unmodifiable @NonNull Map<String,String> messages, boolean ingameServiceStartStopMessages)
extends Record
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final booleanThe field for theingameServiceStartStopMessagesrecord component.private final @Unmodifiable @NonNull Set<SyncProxyLoginConfiguration> The field for theloginConfigurationsrecord component.private final @Unmodifiable @NonNull Map<String, String> The field for themessagesrecord component.private final @Unmodifiable @NonNull Set<SyncProxyTabListConfiguration> The field for thetabListConfigurationsrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionSyncProxyConfiguration(@Unmodifiable @NonNull Set<SyncProxyLoginConfiguration> loginConfigurations, @Unmodifiable @NonNull Set<SyncProxyTabListConfiguration> tabListConfigurations, @Unmodifiable @NonNull Map<String, String> messages, boolean ingameServiceStartStopMessages) Creates an instance of aSyncProxyConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()builder(@NonNull SyncProxyConfiguration configuration) static @Nullable SyncProxyConfigurationconfigurationFromNode(@NonNull String nodeUniqueId) static @NonNull SyncProxyConfigurationcreateDefault(@NonNull String targetGroup) final booleanIndicates whether some other object is "equal to" this one.fillCommonPlaceholders(@NonNull eu.cloudnetservice.driver.service.ServiceInfoSnapshot serviceInfoSnapshot, @Nullable String input, int onlinePlayers, int maxPlayers) final inthashCode()Returns a hash code value for this object.booleanReturns the value of theingameServiceStartStopMessagesrecord component.Returns the value of theloginConfigurationsrecord component.messages()Returns the value of themessagesrecord component.voidReturns the value of thetabListConfigurationsrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
loginConfigurations
The field for theloginConfigurationsrecord component. -
tabListConfigurations
@NonNull private final @Unmodifiable @NonNull Set<SyncProxyTabListConfiguration> tabListConfigurationsThe field for thetabListConfigurationsrecord component. -
messages
-
ingameServiceStartStopMessages
private final boolean ingameServiceStartStopMessagesThe field for theingameServiceStartStopMessagesrecord component. -
DEFAULT_MESSAGES
-
-
Constructor Details
-
SyncProxyConfiguration
public SyncProxyConfiguration(@NonNull @Unmodifiable @NonNull Set<SyncProxyLoginConfiguration> loginConfigurations, @NonNull @Unmodifiable @NonNull Set<SyncProxyTabListConfiguration> tabListConfigurations, @NonNull @Unmodifiable @NonNull Map<String, String> messages, boolean ingameServiceStartStopMessages) Creates an instance of aSyncProxyConfigurationrecord class.- Parameters:
loginConfigurations- the value for theloginConfigurationsrecord componenttabListConfigurations- the value for thetabListConfigurationsrecord componentmessages- the value for themessagesrecord componentingameServiceStartStopMessages- the value for theingameServiceStartStopMessagesrecord component
-
-
Method Details
-
fillCommonPlaceholders
-
builder
-
builder
@NonNull public static @NonNull SyncProxyConfiguration.Builder builder(@NonNull @NonNull SyncProxyConfiguration configuration) -
createDefault
-
configurationFromNode
-
message
-
sendUpdate
public void sendUpdate() -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
loginConfigurations
Returns the value of theloginConfigurationsrecord component.- Returns:
- the value of the
loginConfigurationsrecord component
-
tabListConfigurations
Returns the value of thetabListConfigurationsrecord component.- Returns:
- the value of the
tabListConfigurationsrecord component
-
messages
-
ingameServiceStartStopMessages
public boolean ingameServiceStartStopMessages()Returns the value of theingameServiceStartStopMessagesrecord component.- Returns:
- the value of the
ingameServiceStartStopMessagesrecord component
-