|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.AbstractMap<Object,Object>
org.apache.commons.configuration.ConfigurationMap
public class ConfigurationMap
The ConfigurationMap
wraps a
configuration-collection
Configuration
instance to provide a Map
interface.
Note: This implementation is incomplete.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.util.AbstractMap |
---|
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V> |
Nested classes/interfaces inherited from interface java.util.Map |
---|
Map.Entry<K,V> |
Constructor Summary | |
---|---|
ConfigurationMap(Configuration configuration)
Creates a new instance of a ConfigurationMap
that wraps the specified Configuration
instance. |
Method Summary | |
---|---|
Set<Map.Entry<Object,Object>> |
entrySet()
Returns a set with the entries contained in this configuration-based map. |
Object |
get(Object key)
Returns the value of the specified key. |
Configuration |
getConfiguration()
Returns the wrapped Configuration object. |
Object |
put(Object key,
Object value)
Stores the value for the specified key. |
Methods inherited from class java.util.AbstractMap |
---|
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, toString, values |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConfigurationMap(Configuration configuration)
ConfigurationMap
that wraps the specified Configuration
instance.
configuration
- Configuration
instance.Method Detail |
---|
public Configuration getConfiguration()
Configuration
object.
public Set<Map.Entry<Object,Object>> entrySet()
entrySet
in interface Map<Object,Object>
entrySet
in class AbstractMap<Object,Object>
Map.entrySet()
public Object put(Object key, Object value)
put
in interface Map<Object,Object>
put
in class AbstractMap<Object,Object>
key
- the key (will be converted to a string)value
- the value
Map.put(java.lang.Object, java.lang.Object)
public Object get(Object key)
get
in interface Map<Object,Object>
get
in class AbstractMap<Object,Object>
key
- the key
Map.get(java.lang.Object)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |