Package org.conical.common.bbl.util
Class ParameterMap
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<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:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Convenience class for building ParameterMapsNested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Returns a ParameterMapBuilder wrapping a new ParameterMapstatic ParameterMap
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
ParameterMap
public ParameterMap()
-
-
Method Details
-
builder
Returns a ParameterMapBuilder wrapping a new ParameterMap- Returns:
- a ParameterMapBuilder wrapping a new ParameterMap
-
getEmptyMap
- Returns:
- an empty ParameterMap for general use
-