Lazy Item
open class LazyItem<T> @JvmOverloads() constructor(spec: Spec, name: String, thunk: (config: ItemContainer) -> T, description: String, type: JavaType?, nullable: Boolean) : Item<T>
Content copied to clipboard
Lazy item evaluated value every time from thunk before associated with specified value.
Before associated with specified value, value evaluated from thunk will be returned when accessing. After associated with specified value, the specified value will be returned when accessing. Returned value of the thunk will not be cached. The thunk will be evaluated every time when needed to reflect modifying of other values in config.
Constructors
LazyItem
Link copied to clipboard
@JvmOverloads()
Content copied to clipboard
Functions
Properties
asLazyItem
Link copied to clipboard
asOptionalItem
Link copied to clipboard
asRequiredItem
Link copied to clipboard
description
Link copied to clipboard
isOptional
Link copied to clipboard
isRequired
Link copied to clipboard
thunk
Link copied to clipboard
Sources
jvm source
Link copied to clipboard