Class ValueMap

  • All Implemented Interfaces:
    IValue, IValueMap, java.util.Map<java.lang.String,​IValue>

    public class ValueMap
    extends AbstractValue
    implements IValueMap
    Define the generic value map which will represent the operation input and output in map format.
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • 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, or null 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 valueMap
      void 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 java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface com.adobe.aem.dermis.model.value.IValue

        toJson
      • Methods inherited from interface java.util.Map

        compute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAll
    • Method Detail

      • get

        public IValue get​(java.lang.String key)
        Returns the value to which the specified key is mapped, or null if this valuemap contains no mapping for the key.
        Specified by:
        get in interface IValueMap
        Parameters:
        key - the key whose associated value is to be returned
        Returns:
        the value to which the specified key is mapped, or null if this valuemap contains no mapping for the key
      • size

        public int size()
        Specified by:
        size in interface java.util.Map<java.lang.String,​IValue>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Map<java.lang.String,​IValue>
      • containsKey

        public boolean containsKey​(java.lang.Object key)
        Specified by:
        containsKey in interface java.util.Map<java.lang.String,​IValue>
      • containsValue

        public boolean containsValue​(java.lang.Object value)
        Specified by:
        containsValue in interface java.util.Map<java.lang.String,​IValue>
      • get

        public IValue get​(java.lang.Object key)
        Specified by:
        get in interface java.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
        Specified by:
        put in interface IValueMap
        Specified by:
        put in interface java.util.Map<java.lang.String,​IValue>
        Parameters:
        key - key with which the specified value is to be associated
        value - value to be associated with the specified key
      • remove

        public IValue remove​(java.lang.Object key)
        Specified by:
        remove in interface java.util.Map<java.lang.String,​IValue>
      • putAll

        public void putAll​(java.util.Map<? extends java.lang.String,​? extends IValue> map)
        Specified by:
        putAll in interface java.util.Map<java.lang.String,​IValue>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Map<java.lang.String,​IValue>
      • keySet

        public java.util.Set<java.lang.String> keySet()
        Specified by:
        keySet in interface java.util.Map<java.lang.String,​IValue>
      • values

        public java.util.Collection<IValue> values()
        Specified by:
        values in interface java.util.Map<java.lang.String,​IValue>
      • entrySet

        public java.util.Set<java.util.Map.Entry<java.lang.String,​IValue>> entrySet()
        Specified by:
        entrySet in interface java.util.Map<java.lang.String,​IValue>
      • of

        public static IValueMap of​(java.util.Map<java.lang.String,​IValue> valueMap)