public class ConfigurationMap extends AbstractMap
The ConfigurationMap
wraps a
configuration-collection
Configuration
instance to provide a Map
interface.
Note: This implementation is incomplete.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ConfigurationMap(Configuration configuration)
Creates a new instance of a
ConfigurationMap
that wraps the specified Configuration
instance. |
Modifier and Type | Method and Description |
---|---|
Set |
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.
|
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, putAll, remove, size, toString, values
public ConfigurationMap(Configuration configuration)
ConfigurationMap
that wraps the specified Configuration
instance.configuration
- Configuration
instance.public Configuration getConfiguration()
Configuration
object.public Set entrySet()
entrySet
in interface Map
entrySet
in class AbstractMap
Map.entrySet()
public Object put(Object key, Object value)
put
in interface Map
put
in class AbstractMap
key
- the key (will be converted to a string)value
- the valueMap.put(java.lang.Object, java.lang.Object)
public Object get(Object key)
get
in interface Map
get
in class AbstractMap
key
- the keyMap.get(java.lang.Object)
Copyright © 2018 JBoss by Red Hat. All rights reserved.