Companion

object Companion

Functions

Link copied to clipboard

true or false, missing when it is not set.

true or false, default when it is not set.

Link copied to clipboard

A duration, written as Kotlin writes one (500ms, 5s, 1m 30s), in ISO-8601 (PT5S), or as a bare number of milliseconds (500), as a Spring Duration property reads it; missing when it is not set.

A duration, as duration reads one, default when it is not set.

Link copied to clipboard
fun <E : Enum<E>> enumeration(key: String, description: String, type: Class<E>): ProviderOption<E>

One of the constants of type, written as the configuration writes a value: lower case, words joined by dashes (WAIT_FOR is wait-for); missing when it is not set.

fun <E : Enum<E>> enumeration(key: String, description: String, type: Class<E>, default: E): ProviderOption.Defaulted<E>

One of the constants of type, as enumeration reads one, default when it is not set.

Link copied to clipboard
fun int(key: String, description: String): ProviderOption<Int>

A whole number, missing when it is not set.

fun int(key: String, description: String, default: Int): ProviderOption.Defaulted<Int>

A whole number, default when it is not set.

Link copied to clipboard
fun map(prefix: String, description: String): ProviderOption<Map<String, String>>

The settings under prefix, each sub-key passed through as it is (a client's properties.*, a server's settings.*): any sub-key is accepted, none is checked.

Link copied to clipboard

A text setting, missing when it is not set.

fun string(key: String, description: String, default: String): ProviderOption.Defaulted<String>

A text setting, default when it is not set.

Link copied to clipboard
fun valueOf(constant: Enum<*>): String

constant as the configuration writes it: lower case, words joined by dashes.