Package org.conical.common.bbl.util
Class ParameterMap.ParameterMapBuilder
java.lang.Object
org.conical.common.bbl.util.ParameterMap.ParameterMapBuilder
- Enclosing class:
- ParameterMap
Convenience class for building ParameterMaps
- Author:
- rdoherty
-
Constructor Summary
ConstructorDescriptionConstructs a ParameterMapBuilder that creates a new ParameterMap to append values to.ParameterMapBuilder
(ParameterMap parent) Constructs a ParameterMapBuilder that will append values to an already existing ParameterMap. -
Method Summary
-
Constructor Details
-
ParameterMapBuilder
public ParameterMapBuilder()Constructs a ParameterMapBuilder that creates a new ParameterMap to append values to. -
ParameterMapBuilder
Constructs a ParameterMapBuilder that will append values to an already existing ParameterMap.- Parameters:
parent
- existing ParameterMap
-
-
Method Details
-
add
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 parameterparamValue
- value for this parameter- Returns:
- a reference to this ParameterMapBuilder
-
getMap
- Returns:
- the enclosed ParameterMap
-