public class BulkEditValueMap extends Object implements ValueMap
get(Object key)
performs an "on-demand" merge for the passed key.
In addition to providing the actual (merged) value for a given key, this specific ValueMap can also tell if a given key has a mixed value using get(key + Field.IS_MIXED_SUFFIX)
.Constructor and Description |
---|
BulkEditValueMap(List<Resource> resources) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object value) |
Set<Map.Entry<String,Object>> |
entrySet() |
boolean |
equals(Object o) |
Object |
get(Object key)
Retrieves the merged value for the passed 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.
|
int |
hashCode() |
boolean |
isEmpty() |
Set<String> |
keySet() |
Object |
put(String key,
Object value) |
void |
putAll(Map<? extends String,? extends Object> t) |
Object |
remove(Object key) |
int |
size() |
Collection<Object> |
values() |
public Object get(Object key)
public <T> T get(String name, Class<T> type)
ValueMap
null
in this
case.public <T> T get(String name, T defaultValue)
ValueMap
get
in interface ValueMap
name
- 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. If this is null
any existing property is
not converted.public boolean equals(Object o)
public boolean containsKey(Object key)
containsKey
in interface Map<String,Object>
public boolean containsValue(Object value)
containsValue
in interface Map<String,Object>
public int hashCode()
"Copyright © 2006 - 2015 Adobe Systems Incorporated. All Rights Reserved"