public class ConfigBuilder
extends java.lang.Object
Constructor and Description |
---|
ConfigBuilder(java.lang.String key)
Constructs a ConfigBuilder with the given key.
|
Modifier and Type | Method and Description |
---|---|
ConfigBuilder |
alternatives(java.util.List<java.lang.String> alternatives)
Sets the alternatives for the configuration.
|
ConfigEntry<java.lang.Boolean> |
booleanConf()
Creates a configuration entry for Boolean data type.
|
ConfigBuilder |
deprecated()
Marks the configuration entry as deprecated.
|
ConfigBuilder |
doc(java.lang.String doc)
Sets the documentation for the configuration.
|
ConfigEntry<java.lang.Integer> |
intConf()
Creates a configuration entry for Integer data type.
|
ConfigBuilder |
internal()
Marks the configuration entry as internal (non-public).
|
ConfigEntry<java.lang.Long> |
longConf()
Creates a configuration entry for Long data type.
|
ConfigEntry<java.lang.String> |
stringConf()
Creates a configuration entry for String data type.
|
ConfigBuilder |
version(java.lang.String version)
Sets the version for the configuration.
|
public ConfigBuilder(java.lang.String key)
key
- The key for the configuration.public ConfigBuilder alternatives(java.util.List<java.lang.String> alternatives)
alternatives
- The list of alternative keys.public ConfigBuilder doc(java.lang.String doc)
doc
- The documentation string.public ConfigBuilder version(java.lang.String version)
version
- The version string.public ConfigBuilder internal()
public ConfigBuilder deprecated()
public ConfigEntry<java.lang.String> stringConf()
public ConfigEntry<java.lang.Integer> intConf()
public ConfigEntry<java.lang.Long> longConf()
public ConfigEntry<java.lang.Boolean> booleanConf()