Class Configuration


  • public class Configuration
    extends Object
    This class is a wrapper for configuration settings of Things.
    Author:
    Dennis Nobel - Initial contribution, Kai Kreuzer - added constructors and normalization, Gerhard Riegler - added converting BigDecimal values to the type of the configuration class field, Chris Jackson - fix concurrent modification exception when removing properties, Markus Rathgeb - add copy constructor, Michael Riess - fix concurrent modification exception when setting properties, Michael Riess - fix equals() implementation
    • Constructor Detail

      • Configuration

        public Configuration()
      • Configuration

        public Configuration​(@Nullable Configuration configuration)
        Create a new configuration.

        The new configuration is initialized with the values of the given configuration.

        Parameters:
        configuration - the configuration that should be cloned (may be null)
      • Configuration

        public Configuration​(Map<String,​Object> properties)
        Create a new configuration.
        Parameters:
        properties - the properties the configuration should be filled. If null, an empty configuration is created.