Record Class FilePack
java.lang.Object
java.lang.Record
net.flectone.pulse.model.file.FilePack
- Record Components:
command- the command settingsconfig- the general settingsintegration- the integration settingsmessage- the message settingspermission- the permission settingslocalizations- the localizations, keyed by locale name
public record FilePack(Command command, Config config, Integration integration, Message message, Permission permission, Map<String, Localization> localizations)
extends Record
One complete set of loaded config files. A reload swaps the whole set at once, so nothing ever
reads a half-updated configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionFilePack(Command command, Config config, Integration integration, Message message, Permission permission, Map<String, Localization> localizations) Creates an instance of aFilePackrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncommand()Returns the value of thecommandrecord component.config()Returns the value of theconfigrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theintegrationrecord component.Returns the value of thelocalizationsrecord component.message()Returns the value of themessagerecord component.Returns the value of thepermissionrecord component.final StringtoString()Returns a string representation of this record class.withCommand(Command command) withConfig(Config config) withIntegration(Integration integration) withLocalizations(Map<String, Localization> localizations) withMessage(Message message) withPermission(Permission permission)
-
Constructor Details
-
FilePack
public FilePack(Command command, Config config, Integration integration, Message message, Permission permission, Map<String, Localization> localizations) Creates an instance of aFilePackrecord class.- Parameters:
command- the value for thecommandrecord componentconfig- the value for theconfigrecord componentintegration- the value for theintegrationrecord componentmessage- the value for themessagerecord componentpermission- the value for thepermissionrecord componentlocalizations- the value for thelocalizationsrecord component
-
-
Method Details
-
withCommand
-
withConfig
-
withIntegration
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withMessage
-
withPermission
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
withLocalizations
- Returns:
- a clone of this object, except with this updated property (returns
thisif an identical value is passed).
-
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). -
command
-
config
-
integration
Returns the value of theintegrationrecord component.- Returns:
- the value of the
integrationrecord component
-
message
-
permission
Returns the value of thepermissionrecord component.- Returns:
- the value of the
permissionrecord component
-
localizations
Returns the value of thelocalizationsrecord component.- Returns:
- the value of the
localizationsrecord component
-