Package org.apache.felix.framework.util
Class MapToDictionary
- java.lang.Object
-
- java.util.Dictionary
-
- org.apache.felix.framework.util.MapToDictionary
-
public class MapToDictionary extends java.util.Dictionary
This is a simple class that implements a Dictionary from a Map. The resulting dictionary is immutable.
-
-
Constructor Summary
Constructors Constructor Description MapToDictionary(java.util.Map map)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Enumeration
elements()
java.lang.Object
get(java.lang.Object key)
boolean
isEmpty()
java.util.Enumeration
keys()
java.lang.Object
put(java.lang.Object key, java.lang.Object value)
java.lang.Object
remove(java.lang.Object key)
int
size()
java.lang.String
toString()
-
-
-
Method Detail
-
elements
public java.util.Enumeration elements()
- Specified by:
elements
in classjava.util.Dictionary
-
get
public java.lang.Object get(java.lang.Object key)
- Specified by:
get
in classjava.util.Dictionary
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in classjava.util.Dictionary
-
keys
public java.util.Enumeration keys()
- Specified by:
keys
in classjava.util.Dictionary
-
put
public java.lang.Object put(java.lang.Object key, java.lang.Object value)
- Specified by:
put
in classjava.util.Dictionary
-
remove
public java.lang.Object remove(java.lang.Object key)
- Specified by:
remove
in classjava.util.Dictionary
-
size
public int size()
- Specified by:
size
in classjava.util.Dictionary
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-