Class ConfigurationMap
- Direct Known Subclasses:
ConfigurationDynaBean
The ConfigurationMap
wraps a configuration-collection Configuration
instance to provide a Map
interface.
Note: This implementation is incomplete.
- Since:
- 1.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Constructor Summary
ConstructorDescriptionConfigurationMap
(Configuration configuration) Creates a new instance of aConfigurationMap
that wraps the specifiedConfiguration
instance. -
Method Summary
Modifier and TypeMethodDescriptionentrySet()
Returns a set with the entries contained in this configuration-based map.Gets the value of the specified key.Gets the wrappedConfiguration
object.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
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
ConfigurationMap
Creates a new instance of aConfigurationMap
that wraps the specifiedConfiguration
instance.- Parameters:
configuration
-Configuration
instance.
-
-
Method Details
-
entrySet
Returns a set with the entries contained in this configuration-based map. -
get
Gets the value of the specified key. The key is converted to a string and then passed to the underlying configuration. -
getConfiguration
Gets the wrappedConfiguration
object.- Returns:
- the wrapped configuration
- Since:
- 1.2
-
put
Stores the value for the specified key. The value is stored in the underlying configuration.
-