Package org.apache.cxf.message
Class StringMapImpl
- Direct Known Subclasses:
MessageImpl
A variation on HashMap which allows lookup by Class, via the string
returned by
Class.getName()
.- 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
ConstructorDescriptionStringMapImpl
(int initialSize, float factor) StringMapImpl
(Map<String, Object> i) -
Method Summary
Modifier and TypeMethodDescription<T> T
Convenience method for storing/retrieving typed objects from the map.<T> void
Convenience method for storing/retrieving typed objects from the map.<T> T
Convenience method for removing typed objects from the map.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
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Constructor Details
-
StringMapImpl
public StringMapImpl() -
StringMapImpl
public StringMapImpl(int initialSize, float factor) -
StringMapImpl
-
-
Method Details
-
get
Description copied from interface:StringMap
Convenience method for storing/retrieving typed objects from the map. equivalent to: (T)get(key.getName()); -
put
Description copied from interface:StringMap
Convenience method for storing/retrieving typed objects from the map. equivalent to: put(key.getName(), value); -
remove
Description copied from interface:StringMap
Convenience method for removing typed objects from the map. equivalent to: (T)remove(key.getName());
-