openrndr / org.openrndr.collections / CachedProperty

CachedProperty

class CachedProperty<out T> : ReadOnlyProperty<Any, T> (source)

Constructors

<init>

CachedProperty(loader: () -> T)

Properties

loader

val loader: () -> T

Functions

getValue

fun getValue(thisRef: Any, property: KProperty<*>): T

invalidate

fun invalidate(): Unit