[Felix Framework]

org.apache.felix.framework.util
Class StringMap

Object
  extended by 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 Class Summary
 
Nested classes/interfaces inherited from interface Map
Map.Entry<K,V>
 
Constructor Summary
StringMap()
           
StringMap(boolean caseSensitive)
           
StringMap(Map map, boolean caseSensitive)
           
 
Method Summary
 void clear()
           
 boolean containsKey(Object arg0)
           
 boolean containsValue(Object arg0)
           
 Set entrySet()
           
 Object get(Object arg0)
           
 boolean isCaseSensitive()
           
 boolean isEmpty()
           
 Set keySet()
           
 Object put(Object key, Object value)
           
 void putAll(Map map)
           
 Object remove(Object arg0)
           
 void setCaseSensitive(boolean b)
           
 int size()
           
 String toString()
           
 Collection values()
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface Map
equals, hashCode
 

Constructor Detail

StringMap

public StringMap()

StringMap

public StringMap(boolean caseSensitive)

StringMap

public StringMap(Map map,
                 boolean caseSensitive)
Method Detail

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

[Felix Framework]