- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
,Object> NavigableMap<String,
,Object> SortedMap<String,
Object>
- Direct Known Subclasses:
ChannelInfo
,ObjectInfo
,ParamInfo
Maps an element name to its associated string value.
- See Also:
-
Nested Class Summary
Nested 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
ConstructorDescriptionConstructs a newElementMap
instance.ElementMap
(Comparator<String> comparator) Constructs a newElementMap
instance with a comparator. -
Method Summary
Methods inherited from class java.util.TreeMap
ceilingEntry, ceilingKey, clear, clone, comparator, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, forEach, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, merge, navigableKeySet, pollFirstEntry, pollLastEntry, putAll, putIfAbsent, remove, replace, replace, replaceAll, size, subMap, subMap, tailMap, tailMap, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, isEmpty, toString
-
Constructor Details
-
ElementMap
public ElementMap()Constructs a newElementMap
instance. -
ElementMap
Constructs a newElementMap
instance with a comparator.- Parameters:
comparator
- the comparator used to order this map. Ifnull
, the natural ordering is used.
-
-
Method Details
-
put
Associates an object value with the specified name in this map. If the map previously contained a mapping for the name, the old value is replaced. If the specified value isnull
, the current mapping for the name is preserved.- Specified by:
put
in interfaceMap<String,
Object> - Overrides:
put
in classTreeMap<String,
Object> - Parameters:
name
- the name to which the value is to be associated.value
- the object value to associate with name (can be null).- Returns:
- the previous value of
name
ornull
. - Throws:
NullPointerException
- ifname
isnull
.
-