|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<K,V>
java.util.TreeMap
org.apache.felix.ipojo.context.StringMap
public class StringMap
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.
Constructor Summary | |
---|---|
StringMap()
Constructor. |
|
StringMap(boolean caseSensitive)
Constructor. |
|
StringMap(java.util.Map map,
boolean caseSensitive)
Constructor. |
Method Summary | |
---|---|
boolean |
isCaseSensitive()
Check if the map is case-sensitive. |
java.lang.Object |
put(java.lang.Object key,
java.lang.Object value)
Put a record in the map. |
void |
setCaseSensitive(boolean flag)
Set the case sensitivity. |
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 |
Constructor Detail |
---|
public StringMap()
public StringMap(boolean caseSensitive)
caseSensitive
- : fix if the map if case sensitive or not.public StringMap(java.util.Map map, boolean caseSensitive)
map
- : initial properties.caseSensitive
- : fix if the map if case sensitive or not.Method Detail |
---|
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
put
in interface java.util.Map
put
in class java.util.TreeMap
key
- : keyvalue
- : value
java.util.TreeMap#put(K, V)
public boolean isCaseSensitive()
public void setCaseSensitive(boolean flag)
flag
- : the new case sensitivity.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |