PropertyResolver

interface PropertyResolver<T>

Provides the value of a property

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun <T> PropertyResolver<T>.cached(cache: MutableMap<String, T> = mutableMapOf()): PropertyResolver<T>

Caches the value of the property in a map

Link copied to clipboard
abstract operator fun get(name: String): T?
Link copied to clipboard
fun <T> PropertyResolver<T>.getOrDefaultToParent(key: String, defaultValue: (key: String, parent: T?) -> T = { _, parent -> parent ?: throw NoSuchElementException("key: $key is not set") }): T?
Link copied to clipboard
abstract fun parent(name: String): T?
Link copied to clipboard
abstract operator fun set(name: String, value: T)