Package io.smallrye.config
Class ConfigSourceMap
- java.lang.Object
-
- java.util.AbstractMap<String,String>
-
- io.smallrye.config.ConfigSourceMap
-
- All Implemented Interfaces:
Serializable,Map<String,String>
@Deprecated(forRemoval=true) public class ConfigSourceMap extends AbstractMap<String,String> implements Map<String,String>, Serializable
Deprecated, for removal: This API element is subject to removal in a future version.AMap<String, String>which is backed by aConfigSource. This should not be used to implementConfigSource.getProperties()onConfigSourceinstances which do not overridegetPropertyNames(), as this will result in infinite recursion.- Implementation Note:
- The key set of the map is the result of calling
ConfigSource.getPropertyNames(); the rest of the map operations are derived from this method andConfigSource.getValue(String). The values collection and entry set are instantiated lazily and cached. The implementation attempts to make no assumptions about the efficiency of the backing implementation and prefers the most direct access possible.The backing collections are assumed to be immutable.
- See Also:
- Serialized Form
-
-
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
Constructors Constructor Description ConfigSourceMap(org.eclipse.microprofile.config.spi.ConfigSource delegate)Deprecated, for removal: This API element is subject to removal in a future version.Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description booleancontainsKey(Object key)Deprecated, for removal: This API element is subject to removal in a future version.Set<Map.Entry<String,String>>entrySet()Deprecated, for removal: This API element is subject to removal in a future version.voidforEach(BiConsumer<? super String,? super String> action)Deprecated, for removal: This API element is subject to removal in a future version.Stringget(Object key)Deprecated, for removal: This API element is subject to removal in a future version.booleanisEmpty()Deprecated, for removal: This API element is subject to removal in a future version.Set<String>keySet()Deprecated, for removal: This API element is subject to removal in a future version.intsize()Deprecated, for removal: This API element is subject to removal in a future version.Collection<String>values()Deprecated, for removal: This API element is subject to removal in a future version.-
Methods inherited from class java.util.AbstractMap
clear, clone, containsValue, equals, hashCode, put, putAll, remove, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsValue, equals, getOrDefault, hashCode, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll
-
-
-
-
Constructor Detail
-
ConfigSourceMap
public ConfigSourceMap(org.eclipse.microprofile.config.spi.ConfigSource delegate)
Deprecated, for removal: This API element is subject to removal in a future version.Construct a new instance.- Parameters:
delegate- the delegate configuration source (must not benull)
-
-
Method Detail
-
size
public int size()
Deprecated, for removal: This API element is subject to removal in a future version.
-
isEmpty
public boolean isEmpty()
Deprecated, for removal: This API element is subject to removal in a future version.
-
containsKey
public boolean containsKey(Object key)
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
containsKeyin interfaceMap<String,String>- Overrides:
containsKeyin classAbstractMap<String,String>
-
get
public String get(Object key)
Deprecated, for removal: This API element is subject to removal in a future version.
-
keySet
public Set<String> keySet()
Deprecated, for removal: This API element is subject to removal in a future version.
-
values
public Collection<String> values()
Deprecated, for removal: This API element is subject to removal in a future version.
-
entrySet
public Set<Map.Entry<String,String>> entrySet()
Deprecated, for removal: This API element is subject to removal in a future version.
-
-