Package io.smallrye.config
Class ConfigValueMapView
- java.lang.Object
-
- java.util.AbstractMap<String,String>
-
- io.smallrye.config.ConfigValueMapView
-
@Experimental("Extension to the original ConfigSource to allow retrieval of additional metadata on config lookup") public final class ConfigValueMapView extends AbstractMap<String,String>The ConfigValueMapView is view over a Map of String configs names and ConfigValue value.Use this to wrap the ConfigValue map and expose it where a Map of String name and String value 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>
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsKey(Object key)booleancontainsValue(Object value)Set<Map.Entry<String,String>>entrySet()Stringget(Object key)booleanisEmpty()Set<String>keySet()intsize()Collection<String>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()
-
isEmpty
public boolean isEmpty()
-
containsKey
public boolean containsKey(Object key)
- Specified by:
containsKeyin interfaceMap<String,String>- Overrides:
containsKeyin classAbstractMap<String,String>
-
containsValue
public boolean containsValue(Object value)
- Specified by:
containsValuein interfaceMap<String,String>- Overrides:
containsValuein classAbstractMap<String,String>
-
values
public Collection<String> values()
-
-