Defaulted

class Defaulted<T : Any> @InternalWowApi constructor(key: String, description: String, type: Class<T>, val default: T, scope: ProviderOption.Scope, values: List<String> = emptyList(), parser: (String) -> T) : ProviderOption<T>

An option with a default: a config reads its value, set or not, as a T.

Constructors

Link copied to clipboard
constructor(key: String, description: String, type: Class<T>, default: T, scope: ProviderOption.Scope, values: List<String> = emptyList(), parser: (String) -> T)

Properties

Link copied to clipboard
open override val default: T

Functions

Link copied to clipboard
open override fun perStore(): ProviderOption.Defaulted<T>

This option, settable only on one store instance (Scope.PER_STORE).