Package org.apache.felix.framework.util
Class StringMap
- java.lang.Object
-
- java.util.AbstractMap<java.lang.String,java.lang.Object>
-
- org.apache.felix.framework.util.StringMap
-
- All Implemented Interfaces:
java.util.Map<java.lang.String,java.lang.Object>
public class StringMap extends java.util.AbstractMap<java.lang.String,java.lang.Object>
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.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
boolean
containsKey(java.lang.Object arg0)
boolean
containsValue(java.lang.Object arg0)
java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>>
entrySet()
java.lang.Object
get(java.lang.Object arg0)
boolean
isEmpty()
java.lang.Object
put(java.lang.String key, java.lang.Object value)
void
putAll(java.util.Map<? extends java.lang.String,? extends java.lang.Object> map)
java.lang.Object
remove(java.lang.Object arg0)
int
size()
-
Methods inherited from class java.util.AbstractMap
clone, equals, hashCode, keySet, toString, values
-
-
-
-
Method Detail
-
size
public int size()
- Specified by:
size
in interfacejava.util.Map<java.lang.String,java.lang.Object>
- Overrides:
size
in classjava.util.AbstractMap<java.lang.String,java.lang.Object>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interfacejava.util.Map<java.lang.String,java.lang.Object>
- Overrides:
isEmpty
in classjava.util.AbstractMap<java.lang.String,java.lang.Object>
-
containsKey
public boolean containsKey(java.lang.Object arg0)
- Specified by:
containsKey
in interfacejava.util.Map<java.lang.String,java.lang.Object>
- Overrides:
containsKey
in classjava.util.AbstractMap<java.lang.String,java.lang.Object>
-
containsValue
public boolean containsValue(java.lang.Object arg0)
- Specified by:
containsValue
in interfacejava.util.Map<java.lang.String,java.lang.Object>
- Overrides:
containsValue
in classjava.util.AbstractMap<java.lang.String,java.lang.Object>
-
get
public java.lang.Object get(java.lang.Object arg0)
- Specified by:
get
in interfacejava.util.Map<java.lang.String,java.lang.Object>
- Overrides:
get
in classjava.util.AbstractMap<java.lang.String,java.lang.Object>
-
put
public java.lang.Object put(java.lang.String key, java.lang.Object value)
- Specified by:
put
in interfacejava.util.Map<java.lang.String,java.lang.Object>
- Overrides:
put
in classjava.util.AbstractMap<java.lang.String,java.lang.Object>
-
putAll
public void putAll(java.util.Map<? extends java.lang.String,? extends java.lang.Object> map)
- Specified by:
putAll
in interfacejava.util.Map<java.lang.String,java.lang.Object>
- Overrides:
putAll
in classjava.util.AbstractMap<java.lang.String,java.lang.Object>
-
remove
public java.lang.Object remove(java.lang.Object arg0)
- Specified by:
remove
in interfacejava.util.Map<java.lang.String,java.lang.Object>
- Overrides:
remove
in classjava.util.AbstractMap<java.lang.String,java.lang.Object>
-
clear
public void clear()
- Specified by:
clear
in interfacejava.util.Map<java.lang.String,java.lang.Object>
- Overrides:
clear
in classjava.util.AbstractMap<java.lang.String,java.lang.Object>
-
entrySet
public java.util.Set<java.util.Map.Entry<java.lang.String,java.lang.Object>> entrySet()
- Specified by:
entrySet
in interfacejava.util.Map<java.lang.String,java.lang.Object>
- Specified by:
entrySet
in classjava.util.AbstractMap<java.lang.String,java.lang.Object>
-
-