public class DeepModifiableValueMapDecorator extends ModifiableValueMapDecorator
| Constructor and Description |
|---|
DeepModifiableValueMapDecorator(Resource resource,
Map<String,Object> base) |
DeepModifiableValueMapDecorator(Resource resource,
Map<String,Object> base,
String[] subnodes) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object key) |
Set<Map.Entry<String,Object>> |
entrySet() |
Object |
get(Object key) |
<T> T |
get(String name,
Class<T> type)
Get a named property and convert it into the given type.
|
<T> T |
get(String name,
T defaultValue)
Get a named property and convert it into the given type.
|
Set<String> |
keySet() |
Object |
put(String key,
Object value) |
void |
putAll(Map<? extends String,?> t) |
Collection<Object> |
values() |
clear, containsValue, equals, hashCode, isEmpty, remove, size, toStringclear, compute, computeIfAbsent, computeIfPresent, containsValue, equals, forEach, getOrDefault, hashCode, isEmpty, merge, putIfAbsent, remove, remove, replace, replace, replaceAll, sizepublic DeepModifiableValueMapDecorator(Resource resource, Map<String,Object> base, String[] subnodes)
public <T> T get(String name, Class<T> type)
null in this
case.get in interface ValueMapget in class ValueMapDecoratorT - The class of the typename - The name of the propertytype - The class of the typenull if
non existing or can't be converted.public <T> T get(String name, T defaultValue)
null.
Therefore all implementations should internally call Map.get(Object) when the 2nd parameter
has value null.get in interface ValueMapget in class ValueMapDecoratorT - The expected typename - The name of the propertydefaultValue - The default value to use if the named property does
not exist or cannot be converted to the requested type. The
default value is also used to define the type to convert the
value to. Must not be null. If you want to return null by default
rather rely on ValueMap.get(String, Class).public boolean containsKey(Object key)
containsKey in interface Map<String,Object>containsKey in class ValueMapDecoratorpublic Collection<Object> values()
Copyright © 2010 - 2020 Adobe. All Rights Reserved