org.apache.felix.framework.util
Class StringMap
java.lang.Object
org.apache.felix.framework.util.StringMap
- All Implemented Interfaces:
- Map
public class StringMap
- extends Object
- implements Map
Simple utility class that creates a map for string-based keys.
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.
Nested classes/interfaces inherited from interface java.util.Map |
Map.Entry |
StringMap
public StringMap()
StringMap
public StringMap(boolean caseSensitive)
StringMap
public StringMap(Map map,
boolean caseSensitive)
isCaseSensitive
public boolean isCaseSensitive()
setCaseSensitive
public void setCaseSensitive(boolean b)
size
public int size()
- Specified by:
size
in interface Map
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Map
containsKey
public boolean containsKey(Object arg0)
- Specified by:
containsKey
in interface Map
containsValue
public boolean containsValue(Object arg0)
- Specified by:
containsValue
in interface Map
get
public Object get(Object arg0)
- Specified by:
get
in interface Map
put
public Object put(Object key,
Object value)
- Specified by:
put
in interface Map
putAll
public void putAll(Map map)
- Specified by:
putAll
in interface Map
remove
public Object remove(Object arg0)
- Specified by:
remove
in interface Map
clear
public void clear()
- Specified by:
clear
in interface Map
keySet
public Set keySet()
- Specified by:
keySet
in interface Map
values
public Collection values()
- Specified by:
values
in interface Map
entrySet
public Set entrySet()
- Specified by:
entrySet
in interface Map
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011 Apache Software Foundation. All Rights Reserved.