public abstract class AbstractStructuredConfigKey<T,RawT,V> extends BasicConfigKey<T> implements StructuredConfigKey
BasicConfigKey.BasicConfigKeyOverwriting<T>, BasicConfigKey.Builder<T>
StructuredConfigKey.StructuredModification<T extends StructuredConfigKey>, StructuredConfigKey.StructuredModifications
ConfigKey.HasConfigKey<T>
Constructor and Description |
---|
AbstractStructuredConfigKey(java.lang.Class<T> type,
java.lang.Class<V> subType,
java.lang.String name,
java.lang.String description,
T defaultValue) |
Modifier and Type | Method and Description |
---|---|
boolean |
acceptsKeyMatch(java.lang.Object contender) |
boolean |
acceptsSubkey(java.lang.Object contender) |
boolean |
acceptsSubkeyStronglyTyped(java.lang.Object contender) |
java.lang.String |
extractSubKeyName(java.lang.Object o) |
T |
extractValue(java.util.Map<?,?> vals,
ExecutionContext exec)
Retrieves the value corresponding to this config key from the given map.
|
boolean |
isSet(java.util.Map<?,?> vals) |
RawT |
rawValue(java.util.Map<?,?> vals)
returns the entries in the map against this config key and any sub-config-keys, without resolving
(like
extractValue(Map, ExecutionContext) but without resolving/coercing;
useful because values in this "map" are actually stored against SubElementConfigKey s |
builder, builder, builder, builder, builder, equals, getDefaultValue, getDescription, getInheritance, getName, getNameParts, getType, getTypeName, getTypeToken, hasDefaultValue, hashCode, isReconfigurable, toString
applyValueToMap
public final java.lang.Class<V> subType
public boolean acceptsKeyMatch(java.lang.Object contender)
acceptsKeyMatch
in interface StructuredConfigKey
public boolean acceptsSubkey(java.lang.Object contender)
acceptsSubkey
in interface StructuredConfigKey
public java.lang.String extractSubKeyName(java.lang.Object o)
public boolean acceptsSubkeyStronglyTyped(java.lang.Object contender)
acceptsSubkeyStronglyTyped
in interface StructuredConfigKey
public boolean isSet(java.util.Map<?,?> vals)
isSet
in interface ConfigKeySelfExtracting<T>
isSet
in class BasicConfigKey<T>
public T extractValue(java.util.Map<?,?> vals, ExecutionContext exec)
BasicConfigKey
extractValue
in interface ConfigKeySelfExtracting<T>
extractValue
in class BasicConfigKey<T>
public RawT rawValue(java.util.Map<?,?> vals)
extractValue(Map, ExecutionContext)
but without resolving/coercing;
useful because values in this "map" are actually stored against SubElementConfigKey
s