LazyNameSettingDelegate

open class LazyNameSettingDelegate<T>(val lazyPrefix: () -> String?, default: T) : SettingDelegate<T>

Same as SettingDelegate, but the name is computed lazily (during the first access). If lazyPrefix returns null, the default value is returned, and lazyPrefix will be called again on next access.

See also

Constructors

Link copied to clipboard
fun <T> LazyNameSettingDelegate(lazyPrefix: () -> String?, default: T)

Functions

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

Properties

Link copied to clipboard
val default: T
Link copied to clipboard
val lazyPrefix: () -> String?
Link copied to clipboard