Class Configuration.Default
java.lang.Object
one.microstream.configuration.types.Configuration.Default
- All Implemented Interfaces:
Configuration
- Enclosing interface:
- Configuration
public static class Configuration.Default extends Object implements Configuration
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.microstream.configuration.types.Configuration
Configuration.Builder, Configuration.Default -
Field Summary
-
Method Summary
Modifier and Type Method Description Configurationchild(String key)Gets the assigned child-configuration of the specified key, ornullif the configuration doesn't contain the key.Iterable<? extends Configuration>children()Gets all direct child-configurations.Map<String,String>coalescedMap()Converts all entries of this configuration and all child-configurations recursively to aMap.XGettingTable<String,String>coalescedTable()Converts all entries of this configuration and all child-configurations recursively to aXGettingTable.booleancontains(String key)Checks if this configuration contains the specified key.Configurationdetach()Creates a new Configuration instance with all entries and child-configurations of this configuration, but with no parent, which makes it a root configuration.Stringget(String key)Gets the assigned value of the specified key, ornullif the configuration doesn't contain the key.<T> Tget(String key, Class<T> type)Gets the assigned value of the specified key.Stringkey()Gets the key of this child-configuration ornullif this is the root configuration.Iterable<String>keys()Gets all keys of this configuration, but not of the child-configurations.Map<String,String>map()Converts all entries of this configuration to aMap.Configurationparent()Gets this configuration's parent, ornullif this is the root configuration.XGettingTable<String,String>table()Converts all entries of this configuration to aXGettingTable.voidtraverse(Consumer<Configuration> consumer)Traverses this and all child-configurations recursively.ConfigurationValueMapperProvidervalueMapperProvider()Gets the value mapper provider which is assigned to this configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface one.microstream.configuration.types.Configuration
getBoolean, getByte, getDouble, getFloat, getInteger, getLong, getShort, isRoot, opt, opt, optBoolean, optByte, optDouble, optFloat, optInteger, optLong, optShort, root, store
-
Method Details
-
get
Description copied from interface:ConfigurationGets the assigned value of the specified key, ornullif the configuration doesn't contain the key.- Specified by:
getin interfaceConfiguration- Parameters:
key- the key to look up- Returns:
- the assigned value, or
null
-
child
Description copied from interface:ConfigurationGets the assigned child-configuration of the specified key, ornullif the configuration doesn't contain the key.- Specified by:
childin interfaceConfiguration- Parameters:
key- the key to look up- Returns:
- the assigned child-configuration, or
null
-
get
Description copied from interface:ConfigurationGets the assigned value of the specified key. ornullif the configuration doesn't contain the key.The String value is parsed by the registered
ConfigurationValueMapperfor the specified type.- Specified by:
getin interfaceConfiguration- Parameters:
key- the key to look uptype- the type to map to- Returns:
- the assigned value, or
null
-
contains
Description copied from interface:ConfigurationChecks if this configuration contains the specified key.- Specified by:
containsin interfaceConfiguration- Parameters:
key- the key to look up- Returns:
trueif this configuration contains the key,falseotherwise
-
key
Description copied from interface:ConfigurationGets the key of this child-configuration ornullif this is the root configuration.- Specified by:
keyin interfaceConfiguration- Returns:
- this child-configuration's key
-
keys
Description copied from interface:ConfigurationGets all keys of this configuration, but not of the child-configurations.- Specified by:
keysin interfaceConfiguration- Returns:
- an iterable with all keys
-
children
Description copied from interface:ConfigurationGets all direct child-configurations.- Specified by:
childrenin interfaceConfiguration- Returns:
- all child-configurations
-
parent
Description copied from interface:ConfigurationGets this configuration's parent, ornullif this is the root configuration.- Specified by:
parentin interfaceConfiguration- Returns:
- the parent or
null
-
traverse
Description copied from interface:ConfigurationTraverses this and all child-configurations recursively.- Specified by:
traversein interfaceConfiguration- Parameters:
consumer- the consumer to accept all configurations
-
table
Description copied from interface:ConfigurationConverts all entries of this configuration to aXGettingTable.- Specified by:
tablein interfaceConfiguration- Returns:
- a
XGettingTablecontaining all entries of this configurations - See Also:
Configuration.coalescedTable()
-
coalescedTable
Description copied from interface:ConfigurationConverts all entries of this configuration and all child-configurations recursively to aXGettingTable.- Specified by:
coalescedTablein interfaceConfiguration- Returns:
- a
XGettingTablecontaining all entries of this and all child-configurations
-
map
Description copied from interface:ConfigurationConverts all entries of this configuration to aMap.Because configurations are immutable, changes made in the resulting map will not reflect back.
- Specified by:
mapin interfaceConfiguration- Returns:
- a
Mapcontaining all entries of this configurations - See Also:
Configuration.coalescedMap()
-
coalescedMap
Description copied from interface:ConfigurationConverts all entries of this configuration and all child-configurations recursively to aMap.Because configurations are immutable, changes made in the resulting map will not reflect back.
- Specified by:
coalescedMapin interfaceConfiguration- Returns:
- a
Mapcontaining all entries of this and all child-configurations
-
valueMapperProvider
Description copied from interface:ConfigurationGets the value mapper provider which is assigned to this configuration.- Specified by:
valueMapperProviderin interfaceConfiguration- Returns:
- the assigned value mapper
- See Also:
Configuration.get(String, Class)
-
detach
Description copied from interface:ConfigurationCreates a new Configuration instance with all entries and child-configurations of this configuration, but with no parent, which makes it a root configuration.The original configuration (this) remains untouched.
- Specified by:
detachin interfaceConfiguration- Returns:
- a new, detached configuration
-