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 ClassesModifier and TypeClassDescription(package private) static classSets of entries in the map.Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ConfigurationTheConfigurationwrapped by this class. -
Constructor Summary
ConstructorsConstructorDescriptionConfigurationMap(Configuration configuration) Creates a new instance of aConfigurationMapthat wraps the specifiedConfigurationinstance. -
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 wrappedConfigurationobject.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, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
configuration
TheConfigurationwrapped by this class.
-
-
Constructor Details
-
ConfigurationMap
Creates a new instance of aConfigurationMapthat wraps the specifiedConfigurationinstance.- Parameters:
configuration-Configurationinstance.
-
-
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 wrappedConfigurationobject.- Returns:
- the wrapped configuration
- Since:
- 1.2
-
put
Stores the value for the specified key. The value is stored in the underlying configuration.
-