public class EmptyConfiguration implements Configuration
Configuration.DefaultImpls| Modifier and Type | Field and Description |
|---|---|
static EmptyConfiguration |
INSTANCE |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(Key<?> key) |
<T> java.lang.Void |
get(Key<? extends T> key)
Look up a property value identified by key, or throw
exception Misconfiguration if there is no definition of the
property. |
<T> T |
getOrElse(Key<? extends T> key,
T p)
Look up a property value identified by key, or return default with the key if there is no definition of the
property.
|
<T> T |
getOrElse(Key<? extends T> key,
Function1<? super com.natpryce.konfig.Key<?extendsT>,? extends T> p)
Look up a property value identified by key, or call default with the key if there is no definition of the
property.
|
<T> java.lang.Void |
getOrNull(Key<? extends T> key)
Look up a property value identified by key, or return
null if there is no definition of the
property. |
NonExistentClass |
list() |
NonExistentClass |
searchPath(Key<?> key)
Report the locations that will be searched for a configuration property, in priority order. The value used
is taken from the first location in the list that contains a mapping for the key.
|
contains, get, getOrElse, getOrElse, getOrNull, list, searchPathpublic static EmptyConfiguration INSTANCE
public <T> java.lang.Void get(Key<? extends T> key)
Look up a property value identified by key, or throw exception Misconfiguration if there is no definition of the
property.
exception Misconfigurationpublic <T> T getOrElse(Key<? extends T> key, T p)
Look up a property value identified by key, or return default with the key if there is no definition of the property.
public <T> T getOrElse(Key<? extends T> key, Function1<? super com.natpryce.konfig.Key<?extendsT>,? extends T> p)
Look up a property value identified by key, or call default with the key if there is no definition of the property.
public <T> java.lang.Void getOrNull(Key<? extends T> key)
Look up a property value identified by key, or return null if there is no definition of the
property.
public boolean contains(Key<?> key)
public NonExistentClass list()
public NonExistentClass searchPath(Key<?> key)
Report the locations that will be searched for a configuration property, in priority order. The value used is taken from the first location in the list that contains a mapping for the key.