Package io.smallrye.config
Class ConfigValueConfigSource.ConfigValueMapStringView
- java.lang.Object
-
- java.util.AbstractMap<String,ConfigValue>
-
- io.smallrye.config.ConfigValueConfigSource.ConfigValueMapStringView
-
- All Implemented Interfaces:
Map<String,ConfigValue>
- Enclosing interface:
- ConfigValueConfigSource
public static final class ConfigValueConfigSource.ConfigValueMapStringView extends AbstractMap<String,ConfigValue>
TheConfigValueConfigSource.ConfigValueMapStringViewis a view over a Map of String configs names and String values.Use it to wrap a Map of Strings and expose it where a Map of String name and a
ConfigValuevalue is required.
-
-
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 ConfigValueMapStringView(Map<String,String> delegate, String configSourceName, int configSourceOrdinal)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<String,ConfigValue>>entrySet()ConfigValueget(Object key)booleanisEmpty()Set<String>keySet()intsize()Collection<ConfigValue>values()-
Methods inherited from class java.util.AbstractMap
clear, clone, 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
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
-
-
Method Detail
-
size
public int size()
- Specified by:
sizein interfaceMap<String,ConfigValue>- Overrides:
sizein classAbstractMap<String,ConfigValue>
-
isEmpty
public boolean isEmpty()
- Specified by:
isEmptyin interfaceMap<String,ConfigValue>- Overrides:
isEmptyin classAbstractMap<String,ConfigValue>
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<String,ConfigValue>- Overrides:
containsKeyin classAbstractMap<String,ConfigValue>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<String,ConfigValue>- Overrides:
containsValuein classAbstractMap<String,ConfigValue>
-
get
public ConfigValue get(Object key)
- Specified by:
getin interfaceMap<String,ConfigValue>- Overrides:
getin classAbstractMap<String,ConfigValue>
-
keySet
public Set<String> keySet()
- Specified by:
keySetin interfaceMap<String,ConfigValue>- Overrides:
keySetin classAbstractMap<String,ConfigValue>
-
entrySet
public Set<Map.Entry<String,ConfigValue>> entrySet()
- Specified by:
entrySetin interfaceMap<String,ConfigValue>- Specified by:
entrySetin classAbstractMap<String,ConfigValue>
-
values
public Collection<ConfigValue> values()
- Specified by:
valuesin interfaceMap<String,ConfigValue>- Overrides:
valuesin classAbstractMap<String,ConfigValue>
-
-