Properties inherited from class | Properties |
---|---|
interface ConfigMap |
at |
Type Params | Return Type | Name and description |
---|---|---|
|
abstract Map<String, Object> |
flatten()
|
<T> |
abstract T |
getProperty(String key, Class<T> targetType, T defaultValue, List<T> allowedValues) Return the property value associated with the given key, or defaultValue if the key cannot be resolved. |
|
abstract Config |
merge(Map<String, Object> toMerge) Merge another config and return this config |
|
abstract Properties |
toProperties() Converts the config to properties |
Methods inherited from class | Name |
---|---|
interface ConfigMap |
getAt, getProperty, getProperty, getRequiredProperty, navigate, setAt |
interface PropertyResolver |
containsProperty, getProperty, getProperty, getProperty, getProperty, getRequiredProperty, getRequiredProperty, resolvePlaceholders, resolveRequiredPlaceholders |
Return the property value associated with the given key, or
defaultValue
if the key cannot be resolved.
key
- the property name to resolvetargetType
- the expected type of the property valuedefaultValue
- the default value to return if no value is foundthe
- allowable valuesMerge another config and return this config
toMerge
- The map to mergeConverts the config to properties