public class Property_typesKt
| Modifier and Type | Method and Description |
|---|---|
static <T> 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 NonExistentClass |
getBooleanType()
The type of Boolean properties
|
static NonExistentClass |
getDoubleType()
The type of Double properties
|
static NonExistentClass |
getDurationType() |
static NonExistentClass |
getInstantType() |
static NonExistentClass |
getIntType()
The type of Int properties
|
static NonExistentClass |
getLocalDateTimeType() |
static NonExistentClass |
getLocalDateType() |
static NonExistentClass |
getLocalTimeType() |
static NonExistentClass |
getLongType()
The type of Long properties
|
static NonExistentClass |
getPeriodType() |
static NonExistentClass |
getStringType()
The type of string properties
|
static NonExistentClass |
getUriType()
The type of URI properties
|
static <T> Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,NonExistentClass> |
listType(Function2<? super com.natpryce.konfig.PropertyLocation,? super java.lang.String,? extends T> elementType,
NonExistentClass separator) |
static <T,X extends Throwable> |
parser(java.lang.Class<X> exceptionType,
Function1<? super java.lang.String,? extends T> parse) |
static <T> Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,T> |
propertyType(java.lang.String typeName,
Function1<? super java.lang.String,? extends com.natpryce.konfig.ParseResult<T>> parse) |
static <T> Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,T> |
propertyType(java.lang.Class<T> type,
Function1<? super java.lang.String,? extends com.natpryce.konfig.ParseResult<T>> parse) |
static <T> Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,java.util.Set> |
setType(Function2<? super com.natpryce.konfig.PropertyLocation,? super java.lang.String,? extends T> elementType,
NonExistentClass separator) |
static <T,U> NonExistentClass |
wrappedAs(NonExistentClass $receiver,
Function1<? super T,? extends U> wrapper) |
public static <T> Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,T> propertyType(java.lang.String typeName,
Function1<? super java.lang.String,? extends com.natpryce.konfig.ParseResult<T>> parse)
public static <T> Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,T> propertyType(java.lang.Class<T> type,
Function1<? super java.lang.String,? extends com.natpryce.konfig.ParseResult<T>> parse)
public static <T,X extends Throwable> Function1<java.lang.String,com.natpryce.konfig.ParseResult> parser(java.lang.Class<X> exceptionType, Function1<? super java.lang.String,? extends T> parse)
public static NonExistentClass getStringType()
The type of string properties
public 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 NonExistentClass getBooleanType()
The type of Boolean properties
public static <T> 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 NonExistentClass getUriType()
The type of URI properties
public static <T> Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,NonExistentClass> listType(Function2<? super com.natpryce.konfig.PropertyLocation,? super java.lang.String,? extends T> elementType,
NonExistentClass separator)
public static <T> Function2<com.natpryce.konfig.PropertyLocation,java.lang.String,java.util.Set> setType(Function2<? super com.natpryce.konfig.PropertyLocation,? super java.lang.String,? extends T> elementType,
NonExistentClass separator)
public static NonExistentClass getDurationType()
public static NonExistentClass getPeriodType()
public static NonExistentClass getLocalTimeType()
public static NonExistentClass getLocalDateType()
public static NonExistentClass getLocalDateTimeType()
public static NonExistentClass getInstantType()
public static <T,U> NonExistentClass wrappedAs(NonExistentClass $receiver,
Function1<? super T,? extends U> wrapper)