ConfigDelegate

inner class ConfigDelegate<T>(path: String, producer: (String) -> T, consumer: (String, T) -> Unit, comments: List<String> = emptyList())

A property delegate for storage in a backing ConfigWrapper. See AbstractConfig for usage.

Constructors

Link copied to clipboard
constructor(path: String, producer: (String) -> T, consumer: (String, T) -> Unit, comments: List<String> = emptyList())

Functions

Link copied to clipboard
operator fun getValue(thisRef: Any?, property: KProperty<*>): T
Link copied to clipboard
operator fun setValue(thisRef: Any?, property: KProperty<*>, value: T)