org.apache.geronimo.main
Class StringMap
java.lang.Object
java.util.AbstractMap<K,V>
java.util.TreeMap
org.apache.geronimo.main.StringMap
- All Implemented Interfaces:
- Serializable, Cloneable, Map, NavigableMap, SortedMap
public class StringMap
- extends 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 |
ceilingEntry, ceilingKey, clear, clone, comparator, containsKey, containsValue, descendingKeySet, descendingMap, entrySet, firstEntry, firstKey, floorEntry, floorKey, get, headMap, headMap, higherEntry, higherKey, keySet, lastEntry, lastKey, lowerEntry, lowerKey, navigableKeySet, pollFirstEntry, pollLastEntry, putAll, remove, size, subMap, subMap, tailMap, tailMap, values |
StringMap
public StringMap()
StringMap
public StringMap(boolean caseSensitive)
StringMap
public StringMap(Map map,
boolean caseSensitive)
put
public Object put(Object key,
Object value)
- Specified by:
put in interface Map- Overrides:
put in class TreeMap
isCaseSensitive
public boolean isCaseSensitive()
setCaseSensitive
public void setCaseSensitive(boolean b)
Copyright © 2003-2011 The Apache Geronimo development community. All Rights Reserved.