Class ParameterMap

java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,Object>
org.conical.common.bbl.util.ParameterMap
All Implemented Interfaces:
Serializable, Cloneable, Map<String,Object>

public class ParameterMap extends HashMap<String,Object>
Utility class and builder pattern to easily build maps of string->object. Typical usage: ParameterMap myMap = ParameterMap.builder() .add(key1, obj1) .add(key2, obj2) .add(key3, obj3) .getMap();
Author:
rdoherty
See Also:
  • Constructor Details

    • ParameterMap

      public ParameterMap()
  • Method Details

    • builder

      public static ParameterMap.ParameterMapBuilder builder()
      Returns a ParameterMapBuilder wrapping a new ParameterMap
      Returns:
      a ParameterMapBuilder wrapping a new ParameterMap
    • getEmptyMap

      public static ParameterMap getEmptyMap()
      Returns:
      an empty ParameterMap for general use