public class ConfigMapImpl extends AbstractConfigMapImpl
| Constructor and Description |
|---|
ConfigMapImpl(AbstractEntityAdjunct adjunct) |
| Modifier and Type | Method and Description |
|---|---|
void |
addToLocalBag(java.util.Map<java.lang.String,?> vals) |
java.util.Map<ConfigKey<?>,java.lang.Object> |
getAllConfig()
returns the config of this policy
|
<T> T |
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,
unless the default value is null in which case it returns the default.
|
Maybe<java.lang.Object> |
getConfigRaw(ConfigKey<?> key,
boolean includeInherited)
returns the value stored against the given key,
not any default,
not resolved (and guaranteed non-blocking),
and not type-coerced.
|
java.lang.Object |
setConfig(ConfigKey<?> key,
java.lang.Object v) |
ConfigMapImpl |
submap(com.google.common.base.Predicate<ConfigKey<?>> filter)
returns submap matching the given filter predicate; see ConfigPredicates for common predicates
|
java.lang.String |
toString() |
asMapWithStringKeys, getConfig, getConfig, getConfig, getRawConfig, isEmpty, sizepublic ConfigMapImpl(AbstractEntityAdjunct adjunct)
public <T> T getConfig(ConfigKey<T> key, T defaultValue)
ConfigMappublic Maybe<java.lang.Object> getConfigRaw(ConfigKey<?> key, boolean includeInherited)
ConfigMapkey - key to look upincludeInherited - for ConfigMap instances which have an inheritance hierarchy,
whether to traverse it or not; has no effects where there is no inheritancepublic java.util.Map<ConfigKey<?>,java.lang.Object> getAllConfig()
public java.lang.Object setConfig(ConfigKey<?> key, java.lang.Object v)
public void addToLocalBag(java.util.Map<java.lang.String,?> vals)
public ConfigMapImpl submap(com.google.common.base.Predicate<ConfigKey<?>> filter)
ConfigMappublic java.lang.String toString()
toString in class java.lang.Object