public class ConfigWithFallback extends CombinableConfig
| Constructor and Description |
|---|
ConfigWithFallback(Config base,
Config fallback)
Construct.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
all() |
<T> boolean |
contains(IKey<T> key)
returns true if given key is set to this config
|
<T> T |
get(IKey<T> key)
returns the value for the given key.
|
boolean |
isEmpty() |
<T> ConfigWithFallback |
put(IKey<T> key,
T value)
puts a new config to the configuration map.
|
<T> T |
remove(IKey<T> key)
removes the given key (and its value) from configuration map.
|
String |
toJsonString() |
combine, withFallbackpublic String toJsonString()
public boolean isEmpty()
public <T> ConfigWithFallback put(IKey<T> key, T value)
ConfigIKey implementation.key - mandatory parametervalue - mandatory parameterpublic <T> T remove(IKey<T> key)
Configkey - the key to removepublic <T> T get(IKey<T> key)
Configkey - The key to read.Copyright © 2014. All Rights Reserved.