← Back to Stormify Documentation

Out

class Out<T : Any>(val type: KClass<T>) : Sp

OUT parameter. After procedure(...) returns, value holds the typed value produced by the procedure, or null if it was not populated.

Constructors

Link copied to clipboard
constructor(type: KClass<T>)

Properties

Link copied to clipboard
val required: T

Non-null accessor; throws if the procedure did not populate this OUT.

Link copied to clipboard
val type: KClass<T>

The declared Kotlin type of the returned value.

Link copied to clipboard
val value: T?

The returned value, or null if the procedure did not set it.

Functions

Link copied to clipboard
open override fun toString(): String

Debug representation: OUT<Type>:<value>.