public static interface Configurable.ConfigurationSupport
Modifier and Type | Method and Description |
---|---|
java.util.Set<ConfigKey<?>> |
findKeys(<any> filter)
Deprecated.
since 0.11.0 see
ConfigMap#findKeys(Predicate) |
java.util.Set<ConfigKey<?>> |
findKeysDeclared(<any> filter)
see
ConfigMap#findKeysDeclared(Predicate) |
java.util.Set<ConfigKey<?>> |
findKeysPresent(<any> filter)
see
ConfigMap#findKeysPresent(Predicate) |
<T> T |
get(ConfigKey.HasConfigKey<T> key) |
<T> T |
get(ConfigKey<T> key)
Gets the given configuration value for this entity, in the following order of precedence:
value (including null) explicitly set on the entity
value (including null) explicitly set on an ancestor (inherited)
a default value (including null) on the best equivalent static key of the same name declared on the entity
(where best equivalence is defined as preferring a config key which extends another,
as computed in EntityDynamicType.getConfigKeys)
a default value (including null) on the key itself
null
|
<T> T |
set(ConfigKey.HasConfigKey<T> key,
T val) |
<T> T |
set(ConfigKey.HasConfigKey<T> key,
Task<T> val)
Deprecated.
since 1.0.0 (see
set(ConfigKey, Task) |
<T> T |
set(ConfigKey<T> key,
T val)
Sets the config to the given value.
|
<T> T |
set(ConfigKey<T> key,
Task<T> val)
Deprecated.
since 1.0.0; do not use task because can be evaluated only once, and if
cancelled will affect all subsequent lookups of the config value.
Consider using a
TaskFactory . |
<T> T get(ConfigKey<T> key)
<T> T get(ConfigKey.HasConfigKey<T> key)
#get(ConfigKey)}
<T> T set(ConfigKey<T> key, T val)
<T> T set(ConfigKey.HasConfigKey<T> key, T val)
#set(ConfigKey, Object)}
<T> T set(ConfigKey<T> key, Task<T> val)
TaskFactory
.Configurable.getConfig(ConfigKey)
will execute the task, and block until the task completes.<T> T set(ConfigKey.HasConfigKey<T> key, Task<T> val)
set(ConfigKey, Task)
#set(ConfigKey, Task)}
@Deprecated java.util.Set<ConfigKey<?>> findKeys(<any> filter)
ConfigMap#findKeys(Predicate)
java.util.Set<ConfigKey<?>> findKeysDeclared(<any> filter)
ConfigMap#findKeysDeclared(Predicate)
java.util.Set<ConfigKey<?>> findKeysPresent(<any> filter)
ConfigMap#findKeysPresent(Predicate)