public interface ConfigurationBuilder
Modifier and Type | Method and Description |
---|---|
default ConfigurationBuilder |
add(java.lang.String name,
java.lang.Object value)
Adds a new object to the builder with the given name.
|
ConfigurationBuilder |
addArray(java.lang.String name,
ConfigurationArray array)
Adds a ConfigurationArray to the builder with the given name.
|
ConfigurationBuilder |
addBoolean(java.lang.String name,
boolean value)
Adds a boolean to the builder with the given name.
|
ConfigurationBuilder |
addInner(java.lang.String name,
Configuration inner)
Adds a Configuration to the builder with the given name.
|
ConfigurationBuilder |
addNumber(java.lang.String name,
java.lang.Number value)
Adds a number to the builder with the given name.
|
ConfigurationBuilder |
addString(java.lang.String name,
java.lang.String value)
Adds a string to the builder with the given name.
|
Configuration |
build()
Builds the configuration object.
|
ConfigurationBuilder addString(java.lang.String name, java.lang.String value)
name
- The name of the property.value
- The value to be added.ConfigurationBuilder addNumber(java.lang.String name, java.lang.Number value)
name
- The name of the property.value
- The value to be added.ConfigurationBuilder addBoolean(java.lang.String name, boolean value)
name
- The name of the property.value
- The value to be added.ConfigurationBuilder addInner(java.lang.String name, Configuration inner)
name
- The name of the property.inner
- The value to be added.ConfigurationBuilder addArray(java.lang.String name, ConfigurationArray array)
name
- The name of the property.array
- The value to be added.default ConfigurationBuilder add(java.lang.String name, java.lang.Object value)
name
- The name of the property.value
- The value to be added.java.lang.IllegalArgumentException
- If there is no add* method for the type of the value to be added.Configuration build()