org.apache.felix.framework.util
Class StringMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.TreeMap
org.apache.felix.framework.util.StringMap
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, java.util.Map, java.util.SortedMap
public class StringMap
- extends java.util.TreeMap
Simple utility class that creates a map for string-based keys by
extending TreeMap. This map can be set to use case-sensitive
or case-insensitive comparison when searching for the key.
Any keys put into this map will be converted to
a String using the toString() method,
since it is only intended to compare strings.
- See Also:
- Serialized Form
Methods inherited from class java.util.TreeMap |
clear, clone, comparator, containsKey, containsValue, entrySet, firstKey, get, headMap, keySet, lastKey, putAll, remove, size, subMap, tailMap, values |
Methods inherited from class java.util.AbstractMap |
equals, hashCode, isEmpty, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode, isEmpty |
StringMap
public StringMap()
StringMap
public StringMap(boolean caseSensitive)
StringMap
public StringMap(java.util.Map map,
boolean caseSensitive)
put
public java.lang.Object put(java.lang.Object key,
java.lang.Object value)
- Specified by:
put
in interface java.util.Map
- Overrides:
put
in class java.util.TreeMap
isCaseSensitive
public boolean isCaseSensitive()
setCaseSensitive
public void setCaseSensitive(boolean b)