option

inner class option<out S : T & Any> : DSL.Invokable<T, S> (source)

Adds a specialized invokable accessor for the underlying generalized storage. Use as val specialized = _holder.option(::SpecializedClass).

User code can invoke this specialized accessor as specialized { }. This constructs a new specialized child, configures it using the specified block, and stores it in the underlying generalized storage.

Properties

Link copied to clipboard
open override val v: T

Functions

Link copied to clipboard
open operator override fun invoke(configure: S.() -> Unit)