|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConfigMap
| Method Summary | ||
|---|---|---|
Map<String,Object> |
asMapWithStringKeys()
returns a read-only map view which has string keys (corresponding to the config key names); callers encouraged to use the typed keys (and so not use this method), but in some compatibility areas having a Properties-like view is useful |
|
Map<ConfigKey<?>,Object> |
getAllConfig()
returns a map of all config keys to their raw (unresolved+uncoerced) contents |
|
|
getConfig(ConfigKey.HasConfigKey<T> key)
|
|
|
getConfig(ConfigKey.HasConfigKey<T> key,
T defaultValue)
|
|
|
getConfig(ConfigKey<T> key)
|
|
|
getConfig(ConfigKey<T> key,
T defaultValue)
returns value stored against the given key, resolved (if it is a Task, possibly blocking), and coerced to the appropriate type, or given default value if not set |
|
Object |
getRawConfig(ConfigKey<?> key)
returns the value stored against the given key, not any default, not resolved (and guaranteed non-blocking) and not type-coerced |
|
ConfigMap |
submap(com.google.common.base.Predicate<ConfigKey<?>> filter)
returns submap matching the given filter predicate; see ConfigPredicates for common predicates |
|
| Method Detail |
|---|
<T> T getConfig(ConfigKey<T> key)
#getConfig(ConfigKey, Object), with default value as per the key, or null<T> T getConfig(ConfigKey.HasConfigKey<T> key)
#getConfig(ConfigKey, Object), with default value as per the key, or null
<T> T getConfig(ConfigKey.HasConfigKey<T> key,
T defaultValue)
#getConfig(ConfigKey, Object), with provided default value if not set
<T> T getConfig(ConfigKey<T> key,
T defaultValue)
Object getRawConfig(ConfigKey<?> key)
Map<ConfigKey<?>,Object> getAllConfig()
ConfigMap submap(com.google.common.base.Predicate<ConfigKey<?>> filter)
Map<String,Object> asMapWithStringKeys()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||