public class MapConfigKey<V> extends AbstractStructuredConfigKey<java.util.Map<java.lang.String,V>,java.util.Map<java.lang.String,java.lang.Object>,V>
SubElementConfigKey
)
MapConfigKey.MapModification
from MapConfigKey.MapModifications
to clear, clear-and-set, or update
a.map.subkey=1
will cause getConfig(a.map[type=MapConfigKey])
to return {subkey=1}; but note the above are preferred where possible)
Modifier and Type | Class and Description |
---|---|
static interface |
MapConfigKey.MapModification<V> |
static class |
MapConfigKey.MapModificationBase<V> |
static class |
MapConfigKey.MapModifications |
BasicConfigKey.BasicConfigKeyOverwriting<T>, BasicConfigKey.Builder<T>
StructuredConfigKey.StructuredModification<T extends StructuredConfigKey>, StructuredConfigKey.StructuredModifications
ConfigKey.HasConfigKey<T>
subType
Constructor and Description |
---|
MapConfigKey(java.lang.Class<V> subType,
java.lang.String name) |
MapConfigKey(java.lang.Class<V> subType,
java.lang.String name,
java.lang.String description) |
MapConfigKey(java.lang.Class<V> subType,
java.lang.String name,
java.lang.String description,
java.util.Map<java.lang.String,V> defaultValue) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
applyValueToMap(java.lang.Object value,
java.util.Map target)
for internal use
|
ConfigKey<V> |
subKey(java.lang.String subName) |
ConfigKey<V> |
subKey(java.lang.String subName,
java.lang.String description) |
acceptsKeyMatch, acceptsSubkey, acceptsSubkeyStronglyTyped, extractSubKeyName, extractValue, isSet, rawValue
builder, builder, builder, builder, builder, equals, getDefaultValue, getDescription, getInheritance, getName, getNameParts, getType, getTypeName, getTypeToken, hasDefaultValue, hashCode, isReconfigurable, toString
public MapConfigKey(java.lang.Class<V> subType, java.lang.String name)
public MapConfigKey(java.lang.Class<V> subType, java.lang.String name, java.lang.String description)
public java.lang.Object applyValueToMap(java.lang.Object value, java.util.Map target)
StructuredConfigKey