public class Property_typesKt
| Modifier and Type | Method and Description |
|---|---|
static <T> kotlin.jvm.functions.Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,T> |
enumType(java.util.Map<java.lang.String,? extends T> allowed)
An enumerated list of possible values, each specified by the string value used in configuration files and the
value used in the program.
|
static <T> NonExistentClass |
enumType(kotlin.Pair allowed) |
static <T extends java.lang.Enum<T>> |
enumType(T<T>[] allowed) |
static kotlin.jvm.functions.Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,java.lang.Boolean> |
getBooleanType()
The type of Boolean properties
|
static NonExistentClass |
getDoubleType()
The type of Double properties
|
static NonExistentClass |
getIntType()
The type of Int properties
|
static NonExistentClass |
getLongType()
The type of Long properties
|
static kotlin.jvm.functions.Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,java.lang.String> |
getStringType()
A parser for string properties (the identity function)
|
static kotlin.jvm.functions.Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,java.net.URI> |
getUriType()
The type of URI properties
|
static <T> kotlin.jvm.functions.Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,NonExistentClass> |
listType(kotlin.jvm.functions.Function2<? super com.natpryce.konfig.PropertyLocation,? super java.lang.String,? extends T> elementType,
kotlin.text.Regex separator) |
static <T> kotlin.jvm.functions.Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,T> |
numericPropertyType(kotlin.jvm.functions.Function1<? super java.lang.String,? extends T> parse)
Wraps a parse function and translates NumberFormatExceptions into
class Misconfiguration exceptions. |
static <T,X extends java.lang.Exception> |
propertyType(kotlin.jvm.functions.Function1<? super java.lang.String,? extends T> parse)
Wraps a parse function and translates NumberFormatExceptions into
class Misconfiguration exceptions. |
public static kotlin.jvm.functions.Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,java.lang.String> getStringType()
A parser for string properties (the identity function)
public static <T,X extends java.lang.Exception> kotlin.jvm.functions.Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,T> propertyType(kotlin.jvm.functions.Function1<? super java.lang.String,? extends T> parse)
Wraps a parse function and translates NumberFormatExceptions into class Misconfiguration exceptions.
class Misconfigurationpublic static <T> kotlin.jvm.functions.Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,T> numericPropertyType(kotlin.jvm.functions.Function1<? super java.lang.String,? extends T> parse)
Wraps a parse function and translates NumberFormatExceptions into class Misconfiguration exceptions.
class Misconfigurationpublic static NonExistentClass getIntType()
The type of Int properties
public static NonExistentClass getLongType()
The type of Long properties
public static NonExistentClass getDoubleType()
The type of Double properties
public static kotlin.jvm.functions.Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,java.lang.Boolean> getBooleanType()
The type of Boolean properties
public static <T> kotlin.jvm.functions.Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,T> enumType(java.util.Map<java.lang.String,? extends T> allowed)
An enumerated list of possible values, each specified by the string value used in configuration files and the value used in the program.
public static <T> NonExistentClass enumType(kotlin.Pair allowed)
public static <T extends java.lang.Enum<T>> NonExistentClass enumType(T<T>[] allowed)
public static kotlin.jvm.functions.Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,java.net.URI> getUriType()
The type of URI properties
public static <T> kotlin.jvm.functions.Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,NonExistentClass> listType(kotlin.jvm.functions.Function2<? super com.natpryce.konfig.PropertyLocation,? super java.lang.String,? extends T> elementType,
kotlin.text.Regex separator)