@CompileStatic public class CompositeConfig extends Object implements Config
A Config composed of other Configs
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
addFirst(Config config) Adds a config at the highest level of precedence |
|
public void |
addLast(Config config) Adds a config at the lowest level of precedence |
|
public void |
clear() |
|
public boolean |
containsKey(Object key) |
|
public boolean |
containsProperty(String key) |
|
public boolean |
containsValue(Object value) |
|
public Set<Map.Entry<String, Object>> |
entrySet() |
|
public Map<String, Object> |
flatten() |
|
public Object |
get(Object key) |
|
public Object |
getAt(Object key) |
<T> |
public T |
getProperty(String key, Class<T> targetType, T defaultValue, List<T> allowedValues) |
|
public String |
getProperty(String key, String defaultValue) |
<T> |
public T |
getProperty(String key, Class<T> targetType) |
<T> |
public T |
getProperty(String key, Class<T> targetType, T defaultValue) |
|
public String |
getProperty(String key) |
|
public String |
getRequiredProperty(String key) |
<T> |
public T |
getRequiredProperty(String key, Class<T> targetType) |
|
public boolean |
isEmpty() |
|
public Iterator<Map.Entry<String, Object>> |
iterator() |
|
public Set<String> |
keySet() |
|
public Config |
merge(Map<String, Object> toMerge) |
|
public Object |
navigate(String path) |
|
public Object |
put(String key, Object value) |
|
public void |
putAll(Map<? extends String, ?> m) |
|
public Object |
remove(Object key) |
|
public String |
resolvePlaceholders(String text) |
|
public String |
resolveRequiredPlaceholders(String text) |
|
public void |
setAt(Object key, Object value) |
|
public int |
size() |
|
public Properties |
toProperties() |
|
public Collection<Object> |
values() |
Adds a config at the highest level of precedence
Adds a config at the lowest level of precedence