Class KeyColumnConfigBuilder


  • @Generated({"common/config/src/templates/ConfigBuilder.stg","common/config/config.gradle"})
    public final class KeyColumnConfigBuilder
    extends java.lang.Object
    Builder for KeyColumnConfig.
    • Constructor Detail

      • KeyColumnConfigBuilder

        public KeyColumnConfigBuilder()
        Constructs an empty KeyColumnConfigBuilder
      • KeyColumnConfigBuilder

        public KeyColumnConfigBuilder​(java.util.Map<KeyColumnConfig.Field,​java.lang.Object> values)
        Constructs a KeyColumnConfigBuilder initialized with the values from the given map
        Parameters:
        values - a map containing configuration values
      • KeyColumnConfigBuilder

        public KeyColumnConfigBuilder​(KeyColumnConfig config)
        Constructs a KeyColumnConfigBuilder initialized with the values from the given config
        Parameters:
        config - the configuration to take the values from
      • KeyColumnConfigBuilder

        public KeyColumnConfigBuilder​(KeyColumnConfigBuilder builder)
        Constructs a KeyColumnConfigBuilder initialized with the values from the given builder
        Parameters:
        builder - the builder to take the values from
    • Method Detail

      • putAll

        public KeyColumnConfigBuilder putAll​(java.util.Map<KeyColumnConfig.Field,​java.lang.Object> values)
        Puts all values from the given map into this builder.
        Parameters:
        values - the values to put in the builder
      • putAll

        public KeyColumnConfigBuilder putAll​(KeyColumnConfig config)
        Puts all values from the given config into this builder
        Parameters:
        config - the config to take the values from
      • build

        public KeyColumnConfig build​(java.lang.String parentPath)
        Builds the KeyColumnConfig.
        Parameters:
        parentPath - if not null, resolves relative paths against this parentPath
        Returns:
        an instance of KeyColumnConfig
      • build

        public KeyColumnConfig build()
        Builds the KeyColumnConfig with a parentPath of null.
        Returns:
        An instance of KeyColumnConfig
        See Also:
        build(String)
      • toInputStream

        public java.io.InputStream toInputStream()
        Returns:
        an InputStream representing the config
      • getValues

        public java.util.Map<KeyColumnConfig.Field,​java.lang.Object> getValues()
        Returns:
        the raw config values
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object