Config.Companion| Constructor and Description |
|---|
CompositeConfig(Config lookFirst,
Config lookSecond) |
| Modifier and Type | Method and Description |
|---|---|
Config |
subConfig(java.lang.String key)
Tries to retrieve part of the configuration based on given key.
|
java.lang.String |
toString() |
<T> T |
valueOrDefault(java.lang.String key,
T p)
Retrieves a sub configuration or value based on given key. If configuration property cannot be found
the specified default value is returned.
|
<T> T |
valueOrNull(java.lang.String key)
Retrieves a sub configuration or value based on given key.
If the configuration property cannot be found, null is returned.
|
subConfig, valueOrDefault, valueOrNullpublic Config subConfig(java.lang.String key)
Tries to retrieve part of the configuration based on given key.
public <T> T valueOrDefault(java.lang.String key,
T p)
Retrieves a sub configuration or value based on given key. If configuration property cannot be found the specified default value is returned.
public <T> T valueOrNull(java.lang.String key)
Retrieves a sub configuration or value based on given key. If the configuration property cannot be found, null is returned.
public java.lang.String toString()