Class KVP

  • All Implemented Interfaces:
    Serializable, Cloneable, Map<String,​Object>

    public class KVP
    extends LinkedHashMap<String,​Object>
    A linked HashMap set up for easy construction.

    Example: KVP map = new KVP("foo",1,"bar,2);

    Author:
    jody
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class AbstractMap

        AbstractMap.SimpleEntry<K extends Object,​V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,​V extends Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      KVP​(Object... pairs)
      A linked HashMap set up for easy construction.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(String key, Object value)
      An additive version of put; will add additional values resulting in a list.
      • Methods inherited from class LinkedHashMap

        clear, containsValue, entrySet, forEach, get, getOrDefault, keySet, removeEldestEntry, replaceAll, values
      • Methods inherited from class HashMap

        clone, compute, computeIfAbsent, computeIfPresent, containsKey, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
      • Methods inherited from class AbstractMap

        equals, hashCode, toString
      • Methods inherited from class Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface Map

        compute, computeIfAbsent, computeIfPresent, containsKey, equals, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, size
    • Constructor Detail

      • KVP

        public KVP​(Object... pairs)
        A linked HashMap set up for easy construction.

        Example: KVP map = new KVP("foo",1,"bar,2);

    • Method Detail

      • add

        public void add​(String key,
                        Object value)
        An additive version of put; will add additional values resulting in a list.