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 voidclear()booleancontainsKey(java.lang.Object key)booleancontainsValue(java.lang.Object value)java.util.Set<java.util.Map.Entry<java.lang.String,IValue>>entrySet()IValueget(java.lang.Object key)IValueget(java.lang.String key)Returns the value to which the specified key is mapped, ornullif this valuemap contains no mapping for the key.booleanisEmpty()java.util.Set<java.lang.String>keySet()static IValueMapof(java.util.Map<java.lang.String,IValue> valueMap)IValueput(java.lang.String key, IValue value)Associates the specified value with the specified key in this valueMapvoidputAll(java.util.Map<? extends java.lang.String,? extends IValue> map)IValueremove(java.lang.Object key)intsize()java.lang.StringtoString()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, ornullif this valuemap contains no mapping for the key.
-
size
public int size()
- Specified by:
sizein interfacejava.util.Map<java.lang.String,IValue>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfacejava.util.Map<java.lang.String,IValue>
-
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKeyin interfacejava.util.Map<java.lang.String,IValue>
-
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValuein interfacejava.util.Map<java.lang.String,IValue>
-
get
public IValue get(java.lang.Object key)
- Specified by:
getin 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:
removein interfacejava.util.Map<java.lang.String,IValue>
-
putAll
public void putAll(java.util.Map<? extends java.lang.String,? extends IValue> map)
- Specified by:
putAllin interfacejava.util.Map<java.lang.String,IValue>
-
clear
public void clear()
- Specified by:
clearin interfacejava.util.Map<java.lang.String,IValue>
-
keySet
public java.util.Set<java.lang.String> keySet()
- Specified by:
keySetin interfacejava.util.Map<java.lang.String,IValue>
-
values
public java.util.Collection<IValue> values()
- Specified by:
valuesin interfacejava.util.Map<java.lang.String,IValue>
-
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.String,IValue>> entrySet()
- Specified by:
entrySetin interfacejava.util.Map<java.lang.String,IValue>
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractValue
-
-