public class ConfigSourceMap extends AbstractMap<String,String> implements Map<String,String>, Serializable
Map<String, String> which is backed by a ConfigSource.
This should not be used to implement ConfigSource.getProperties() on ConfigSource
instances which do not override getPropertyNames(), as this will result in infinite recursion.ConfigSource.getPropertyNames(); the rest
of the map operations are derived from this method and ConfigSource.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.
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
ConfigSourceMap(org.eclipse.microprofile.config.spi.ConfigSource delegate)
Construct a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(Object key) |
Set<Map.Entry<String,String>> |
entrySet() |
void |
forEach(BiConsumer<? super String,? super String> action) |
String |
get(Object key) |
boolean |
isEmpty() |
Set<String> |
keySet() |
int |
size() |
Collection<String> |
values() |
clear, clone, containsValue, equals, hashCode, put, putAll, remove, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitclear, compute, computeIfAbsent, computeIfPresent, containsValue, equals, getOrDefault, hashCode, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAllpublic ConfigSourceMap(org.eclipse.microprofile.config.spi.ConfigSource delegate)
delegate - the delegate configuration source (must not be null)public int size()
public boolean isEmpty()
public boolean containsKey(Object key)
containsKey in interface Map<String,String>containsKey in class AbstractMap<String,String>public Collection<String> values()
Copyright © 2018–2020. All rights reserved.