Package org.apache.cxf.message
Class StringMapImpl
- java.lang.Object
- 
- java.util.AbstractMap<K,V>
- 
- java.util.HashMap<String,Object>
- 
- org.apache.cxf.message.StringMapImpl
 
 
 
- 
- Direct Known Subclasses:
- MessageImpl
 
 public class StringMapImpl extends HashMap<String,Object> implements StringMap A variation on HashMap which allows lookup by Class, via the string returned byClass.getName().- See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class java.util.AbstractMapAbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
 
- 
 - 
Constructor SummaryConstructors Constructor Description StringMapImpl()StringMapImpl(int initialSize, float factor)StringMapImpl(Map<String,Object> i)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Tget(Class<T> key)Convenience method for storing/retrieving typed objects from the map.<T> voidput(Class<T> key, T value)Convenience method for storing/retrieving typed objects from the map.<T> Tremove(Class<T> key)Convenience method for removing typed objects from the map.- 
Methods inherited from class java.util.HashMapclear, 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.AbstractMapequals, hashCode, toString
 - 
Methods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.util.Mapclear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
 
- 
 
- 
- 
- 
Method Detail- 
getpublic <T> T get(Class<T> key) Description copied from interface:StringMapConvenience method for storing/retrieving typed objects from the map. equivalent to: (T)get(key.getName());
 - 
putpublic <T> void put(Class<T> key, T value) Description copied from interface:StringMapConvenience method for storing/retrieving typed objects from the map. equivalent to: put(key.getName(), value);
 
- 
 
-