public static class Configuration.DefaultImpls
Looks up configuration properties.
| Modifier and Type | Method and Description |
|---|---|
static boolean |
contains(Configuration $this,
Key<?> key) |
static <T> T |
get(Configuration $this,
Key<? extends T> key)
Look up a property value identified by key, or throw
class Misconfiguration if there is no definition of the
property. Implementations can override missingPropertyMessage to provide a more detailed error message
for the exception. |
static <T> T |
getOrElse(Configuration $this,
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.
|
static <T> T |
getOrElse(Configuration $this,
Key<? extends T> key,
kotlin.jvm.functions.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 static <T> T get(Configuration $this, Key<? extends T> key)
Look up a property value identified by key, or throw class Misconfiguration if there is no definition of the
property. Implementations can override missingPropertyMessage to provide a more detailed error message
for the exception.
class Misconfigurationpublic static <T> T getOrElse(Configuration $this, 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 static <T> T getOrElse(Configuration $this, Key<? extends T> key, kotlin.jvm.functions.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 static boolean contains(Configuration $this, Key<?> key)