Class Configuration

    • Field Detail

      • confData

        protected final HashMap<String,​Object> confData
        Stores the concrete key/value pairs of this configuration object.
    • Constructor Detail

      • Configuration

        public Configuration()
        Creates a new empty configuration.
      • Configuration

        public Configuration​(Configuration other)
        Creates a new configuration with the copy of the given configuration.
        Parameters:
        other - The configuration to copy the entries from.
    • Method Detail

      • fromMap

        public static Configuration fromMap​(Map<String,​String> map)
        Creates a new configuration that is initialized with the options of the given map.
      • contains

        public boolean contains​(ConfigOption<?> configOption)
        Checks whether there is an entry for the given config option.
        Parameters:
        configOption - The configuration option
        Returns:
        true if a valid (current or deprecated) key of the config option is stored, false otherwise
      • keySet

        public Set<String> keySet()
        Returns the keys of all key/value pairs stored inside this configuration object.
        Returns:
        the keys of all key/value pairs stored inside this configuration object
      • remove

        public <T> boolean remove​(ConfigOption<T> configOption)
        Removes given config option from the configuration.
        Type Parameters:
        T - Type of the config option
        Parameters:
        configOption - config option to remove
        Returns:
        true is config has been removed, false otherwise
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object