public class MapConfig extends AbstractConfig
| Modifier and Type | Class and Description |
|---|---|
static class |
MapConfig.Builder
The builder only provides convenience for fluent style adding of properties
{@code
|
| Constructor and Description |
|---|
MapConfig(java.util.Map<java.lang.String,java.lang.String> props)
Construct a MapConfig as a copy of the provided Map
|
MapConfig(java.util.Properties props)
Construct a MapConfig as a copy of the provided properties
|
MapConfig(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> props) |
| Modifier and Type | Method and Description |
|---|---|
static MapConfig.Builder |
builder() |
boolean |
containsKey(java.lang.String key) |
void |
forEachProperty(java.util.function.BiConsumer<java.lang.String,java.lang.Object> consumer) |
static MapConfig |
from(java.util.Map<java.lang.String,java.lang.String> props) |
static MapConfig |
from(java.util.Properties props) |
java.util.Iterator<java.lang.String> |
getKeys() |
java.lang.Object |
getRawProperty(java.lang.String key) |
boolean |
isEmpty() |
java.lang.Iterable<java.lang.String> |
keys() |
accept, addListener, generateUniqueName, get, get, get, get, getBigDecimal, getBigDecimal, getBigInteger, getBigInteger, getBoolean, getBoolean, getByte, getByte, getDecoder, getDouble, getDouble, getFloat, getFloat, getInteger, getInteger, getKeys, getList, getList, getList, getListDelimiter, getListeners, getLong, getLong, getLookup, getName, getPrefixedView, getPrivateView, getShort, getShort, getString, getString, getStrInterpolator, getValue, getValueWithDefault, notFound, notFound, notifyConfigAdded, notifyConfigRemoved, notifyConfigUpdated, notifyError, removeListener, resolve, resolve, setDecoder, setListDelimiter, setStrInterpolatorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic MapConfig(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> props)
public MapConfig(java.util.Map<java.lang.String,java.lang.String> props)
name - props - public MapConfig(java.util.Properties props)
props - public static MapConfig.Builder builder()
public static MapConfig from(java.util.Properties props)
public static MapConfig from(java.util.Map<java.lang.String,java.lang.String> props)
public java.lang.Object getRawProperty(java.lang.String key)
public boolean containsKey(java.lang.String key)
public boolean isEmpty()
public java.util.Iterator<java.lang.String> getKeys()
public java.lang.Iterable<java.lang.String> keys()
public void forEachProperty(java.util.function.BiConsumer<java.lang.String,java.lang.Object> consumer)
forEachProperty in interface com.netflix.archaius.api.PropertySourceforEachProperty in class AbstractConfig