Adds another configuration.
Adds another configuration. The configuration passed in argument will override values.
Retrieve and convert configuration data in the wanted type.
Retrieve and convert configuration data in the wanted type. The user must supply a default value, returned is the key is not found.
Retrieve and convert configuration data in the wanted type.
Retrieve and convert configuration data in the wanted type. Throws an NoSuchElementException if the data is not defined. The conversion is done by a ValueConverter instance which should be provided or implicitly defined elsewhere.
Attach a configuration as a sub block.
Attach a configuration as a sub block. Existing entries with same keys will be replaced. Prefix should not end with a 'dot'.
Removes a configuration value.
Removes a configuration value. No effect if the value was not previously defined.
Returns true if some value is associated with the given key, else false.
Detach all values whose keys have the given prefix as a new configuration.
Detach all values whose keys have the given prefix as a new configuration. The initial configuration is not modified. The prefix is removed in the resulting configuration. An important property:
val c2 = c1.attach(prefix, c1.detach( prefix )
The resulting configuration c2 should be equal to c1.
Detach all values whose keys have a common prefix as a new configuration, and repeat this for the entire set of unique prefixes.
Detach all values whose keys have a common prefix as a new configuration, and repeat this for the entire set of unique prefixes.
The initial configuration is not modified. The prefix is removed in the resulting configuration.
Convert the map in a string using a provided export format.
Convert the map in a string using a provided export format. By default, FlatFormat is used.
Retrieve and convert configuration data in the wanted type.
Retrieve and convert configuration data in the wanted type. Returns None if the data is not defined and Some(x) else. The conversion is done by a ValueConverter instance which should be provided or implicitly defined elsewhere.
Adds another configuration values providing entries which are not present in the present one.
Adds another configuration values providing entries which are not present in the present one. Useful for defaulting to another Configuration
Return the set of unique prefixes in this configuration.
Saves the configuration to a file
Saves the configuration to a file
Saves the configuration to a file
Sets a new configuration list value.
Sets a new configuration list value. If the key already exists, previous value is replaced.
Sets a new configuration value.
Sets a new configuration value. If the key already exists, previous value is replaced.
A Configuration class stores and allow access to configuration data. Although immutable, several methods allow to easily change configuration data, returning a new Configuration instance.