Class ParameterMap.ParameterMapBuilder

java.lang.Object
org.conical.common.bbl.util.ParameterMap.ParameterMapBuilder
Enclosing class:
ParameterMap

public static class ParameterMap.ParameterMapBuilder extends Object
Convenience class for building ParameterMaps
Author:
rdoherty
  • Constructor Details

    • ParameterMapBuilder

      public ParameterMapBuilder()
      Constructs a ParameterMapBuilder that creates a new ParameterMap to append values to.
    • ParameterMapBuilder

      public ParameterMapBuilder(ParameterMap parent)
      Constructs a ParameterMapBuilder that will append values to an already existing ParameterMap.
      Parameters:
      parent - existing ParameterMap
  • Method Details

    • add

      public ParameterMap.ParameterMapBuilder add(String paramName, Object paramValue)
      Adds a new value to the enclosed ParameterMap. Like Map.put(), if the parameter key already exists, its value will be overwritten.
      Parameters:
      paramName - key for this parameter
      paramValue - value for this parameter
      Returns:
      a reference to this ParameterMapBuilder
    • getMap

      public ParameterMap getMap()
      Returns:
      the enclosed ParameterMap