Record Class AppConfig.SpigotSettings
java.lang.Object
java.lang.Record
dev.despical.spigotsaleswebhook.config.AppConfig.SpigotSettings
- Enclosing class:
AppConfig
public static record AppConfig.SpigotSettings(String cookie, long requestDelayMs, List<PluginTarget> plugins)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSpigotSettings(String cookie, long requestDelayMs, List<PluginTarget> plugins) Creates an instance of aSpigotSettingsrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncookie()Returns the value of thecookierecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.plugins()Returns the value of thepluginsrecord component.longReturns the value of therequestDelayMsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SpigotSettings
Creates an instance of aSpigotSettingsrecord class.- Parameters:
cookie- the value for thecookierecord componentrequestDelayMs- the value for therequestDelayMsrecord componentplugins- the value for thepluginsrecord component
-
-
Method Details
-
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. -
cookie
Returns the value of thecookierecord component.- Returns:
- the value of the
cookierecord component
-
requestDelayMs
public long requestDelayMs()Returns the value of therequestDelayMsrecord component.- Returns:
- the value of the
requestDelayMsrecord component
-
plugins
Returns the value of thepluginsrecord component.- Returns:
- the value of the
pluginsrecord component
-