Package com.adobe.aem.dermis.model.value
Class ValueMap
- java.lang.Object
-
- com.adobe.aem.dermis.model.value.AbstractValue
-
- com.adobe.aem.dermis.model.value.ValueMap
-
public class ValueMap extends AbstractValue implements IValueMap
Define the generic value map which will represent the operation input and output in map format.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(java.lang.Object key)
boolean
containsValue(java.lang.Object value)
java.util.Set<java.util.Map.Entry<java.lang.String,IValue>>
entrySet()
IValue
get(java.lang.Object key)
IValue
get(java.lang.String key)
Returns the value to which the specified key is mapped, ornull
if this valuemap contains no mapping for the key.boolean
isEmpty()
java.util.Set<java.lang.String>
keySet()
static IValueMap
of(java.util.Map<java.lang.String,IValue> valueMap)
IValue
put(java.lang.String key, IValue value)
Associates the specified value with the specified key in this valueMapvoid
putAll(java.util.Map<? extends java.lang.String,? extends IValue> map)
IValue
remove(java.lang.Object key)
int
size()
java.lang.String
toString()
java.util.Collection<IValue>
values()
-
Methods inherited from class com.adobe.aem.dermis.model.value.AbstractValue
toJson
-
-
-
-
Method Detail
-
get
public IValue get(java.lang.String key)
Returns the value to which the specified key is mapped, ornull
if this valuemap contains no mapping for the key.
-
size
public int size()
- Specified by:
size
in interfacejava.util.Map<java.lang.String,IValue>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Map<java.lang.String,IValue>
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interfacejava.util.Map<java.lang.String,IValue>
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue
in interfacejava.util.Map<java.lang.String,IValue>
-
get
public IValue get(java.lang.Object key)
- Specified by:
get
in interfacejava.util.Map<java.lang.String,IValue>
-
put
public IValue put(java.lang.String key, IValue value)
Associates the specified value with the specified key in this valueMap
-
remove
public IValue remove(java.lang.Object key)
- Specified by:
remove
in interfacejava.util.Map<java.lang.String,IValue>
-
putAll
public void putAll(java.util.Map<? extends java.lang.String,? extends IValue> map)
- Specified by:
putAll
in interfacejava.util.Map<java.lang.String,IValue>
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Map<java.lang.String,IValue>
-
keySet
public java.util.Set<java.lang.String> keySet()
- Specified by:
keySet
in interfacejava.util.Map<java.lang.String,IValue>
-
values
public java.util.Collection<IValue> values()
- Specified by:
values
in interfacejava.util.Map<java.lang.String,IValue>
-
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.String,IValue>> entrySet()
- Specified by:
entrySet
in interfacejava.util.Map<java.lang.String,IValue>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classAbstractValue
-
-