Record Class AppConfig
java.lang.Object
java.lang.Record
dev.despical.spigotsaleswebhook.config.AppConfig
public record AppConfig(AppConfig.DiscordSettings discord, AppConfig.SpigotSettings spigot, AppConfig.ScanSettings scan)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionAppConfig(AppConfig.DiscordSettings discord, AppConfig.SpigotSettings spigot, AppConfig.ScanSettings scan) Creates an instance of aAppConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondiscord()Returns the value of thediscordrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.scan()Returns the value of thescanrecord component.spigot()Returns the value of thespigotrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AppConfig
public AppConfig(AppConfig.DiscordSettings discord, AppConfig.SpigotSettings spigot, AppConfig.ScanSettings scan) Creates an instance of aAppConfigrecord class.- Parameters:
discord- the value for thediscordrecord componentspigot- the value for thespigotrecord componentscan- the value for thescanrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
discord
Returns the value of thediscordrecord component.- Returns:
- the value of the
discordrecord component
-
spigot
Returns the value of thespigotrecord component.- Returns:
- the value of the
spigotrecord component
-
scan
Returns the value of thescanrecord component.- Returns:
- the value of the
scanrecord component
-