public class PropertyTypes
| Modifier and Type | Field and Description |
|---|---|
static NonExistentClass |
booleanType
The type of Boolean properties
|
static NonExistentClass |
doubleType
The type of Double properties
|
static NonExistentClass |
durationType |
static NonExistentClass |
instantType |
static NonExistentClass |
intType
The type of Int properties
|
static NonExistentClass |
localDateTimeType |
static NonExistentClass |
localDateType |
static NonExistentClass |
localTimeType |
static NonExistentClass |
longType
The type of Long properties
|
static NonExistentClass |
stringType
The type of string properties
|
static NonExistentClass |
uriType
The type of URI properties
|
| Modifier and Type | Method and Description |
|---|---|
static <T> kotlin.jvm.functions.Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,T> |
enumType(java.lang.Class<T> enumType,
java.util.Map<java.lang.String,? extends T> allowed) |
static <T extends Enum<T>> |
enumType(java.lang.Class<T> enumClass,
java.lang.Iterable<? extends T> allowed) |
static <T extends Enum<T>> |
enumType(java.lang.Class<T> enumClass) |
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,X extends Throwable> |
parser(java.lang.Class<X> exceptionType,
kotlin.jvm.functions.Function1<? super java.lang.String,? extends T> parse) |
static <T> kotlin.jvm.functions.Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,T> |
propertyType(java.lang.String typeName,
kotlin.jvm.functions.Function1<? super java.lang.String,? extends com.natpryce.konfig.ParseResult<T>> parse) |
static <T> kotlin.jvm.functions.Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,T> |
propertyType(java.lang.Class<T> type,
kotlin.jvm.functions.Function1<? super java.lang.String,? extends com.natpryce.konfig.ParseResult<T>> parse) |
public static NonExistentClass stringType
The type of string properties
public static NonExistentClass intType
The type of Int properties
public static NonExistentClass longType
The type of Long properties
public static NonExistentClass doubleType
The type of Double properties
public static NonExistentClass booleanType
The type of Boolean properties
public static NonExistentClass uriType
The type of URI properties
public static NonExistentClass durationType
public static NonExistentClass localTimeType
public static NonExistentClass localDateType
public static NonExistentClass localDateTimeType
public static NonExistentClass instantType
public static <T> kotlin.jvm.functions.Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,T> propertyType(java.lang.String typeName,
kotlin.jvm.functions.Function1<? super java.lang.String,? extends com.natpryce.konfig.ParseResult<T>> parse)
public static <T> kotlin.jvm.functions.Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,T> propertyType(java.lang.Class<T> type,
kotlin.jvm.functions.Function1<? super java.lang.String,? extends com.natpryce.konfig.ParseResult<T>> parse)
public static <T,X extends Throwable> kotlin.jvm.functions.Function1<java.lang.String,com.natpryce.konfig.ParseResult> parser(java.lang.Class<X> exceptionType, kotlin.jvm.functions.Function1<? super java.lang.String,? extends T> parse)
public static <T> kotlin.jvm.functions.Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,T> enumType(java.lang.Class<T> enumType,
java.util.Map<java.lang.String,? extends T> allowed)
public static <T extends Enum<T>> NonExistentClass enumType(java.lang.Class<T> enumClass, java.lang.Iterable<? extends T> allowed)
public static <T extends Enum<T>> NonExistentClass enumType(java.lang.Class<T> enumClass)
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)