public abstract class AbstractStructuredConfigKey<T,RawT,V> extends BasicConfigKey<T> implements StructuredConfigKey
BasicConfigKey.BasicConfigKeyOverwriting<T>, BasicConfigKey.Builder<T>StructuredConfigKey.StructuredModification<T extends StructuredConfigKey>, StructuredConfigKey.StructuredModificationsConfigKey.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 SubElementConfigKeys |
builder, builder, builder, builder, builder, equals, getDefaultValue, getDescription, getInheritance, getName, getNameParts, getType, getTypeName, getTypeToken, hasDefaultValue, hashCode, isReconfigurable, toStringapplyValueToMappublic final java.lang.Class<V> subType
public boolean acceptsKeyMatch(java.lang.Object contender)
acceptsKeyMatch in interface StructuredConfigKeypublic boolean acceptsSubkey(java.lang.Object contender)
acceptsSubkey in interface StructuredConfigKeypublic java.lang.String extractSubKeyName(java.lang.Object o)
public boolean acceptsSubkeyStronglyTyped(java.lang.Object contender)
acceptsSubkeyStronglyTyped in interface StructuredConfigKeypublic 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)
BasicConfigKeyextractValue 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 SubElementConfigKeys