Class UnmodifiableConfiguration

    • Constructor Detail

      • UnmodifiableConfiguration

        public UnmodifiableConfiguration​(Configuration config)
        Creates a new UnmodifiableConfiguration, which holds a copy of the given configuration that cannot be altered.
        Parameters:
        config - The configuration with the original contents.
    • Method Detail

      • addAll

        public final void addAll​(Configuration other,
                                 String prefix)
        Description copied from class: Configuration
        Adds all entries from the given configuration into this configuration. The keys are prepended with the given prefix.
        Overrides:
        addAll in class Configuration
        Parameters:
        other - The configuration whose entries are added to this configuration.
        prefix - The prefix to prepend.
      • removeConfig

        public <T> boolean removeConfig​(ConfigOption<T> configOption)
        Description copied from class: Configuration
        Removes given config option from the configuration.
        Overrides:
        removeConfig in class Configuration
        Type Parameters:
        T - Type of the config option
        Parameters:
        configOption - config option to remove
        Returns:
        true is config has been removed, false otherwise