public class DefaultConfiguration extends java.lang.Object implements Configuration
| Constructor and Description |
|---|
DefaultConfiguration(java.util.Properties backingProperties) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(java.lang.String key)
Returns true if the configuration contains an entry
for the specified key.
|
Runtime |
getRuntime()
Returns the target runtime for optimizations.
|
java.lang.String |
mandatoryValue(java.lang.String key)
Returns the value of the configuration for the requested
key or fails if not available.
|
<T> T |
optionalValue(java.lang.String key,
java.util.function.Function<java.util.Optional<java.lang.String>,T> producer)
Returns the value for the requested key.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbooleanValue, isFeatureEnabled, optionalString, stringList, stringListpublic DefaultConfiguration(java.util.Properties backingProperties)
public boolean containsKey(java.lang.String key)
containsKey in interface Configurationkey - the key to look for@NonNull public java.lang.String mandatoryValue(java.lang.String key)
ConfigurationmandatoryValue in interface Configurationkey - the key to look forpublic <T> T optionalValue(java.lang.String key,
java.util.function.Function<java.util.Optional<java.lang.String>,T> producer)
ConfigurationoptionalValue in interface ConfigurationT - the type of the return valuekey - the configuration keyproducer - a function called to generate a transformed value@NonNull public Runtime getRuntime()
ConfigurationgetRuntime in interface Configuration