com.r3corda.core / TransientProperty

# TransientProperty

`class TransientProperty<T>`

A simple wrapper that enables the use of Kotlins "val x by TransientProperty { ... }" syntax. Such a property will not be serialized to disk, and if its missing (or the first time its accessed), the initializer will be used to set it up. Note that the initializer will be called with the TransientProperty object locked.

### Constructors

<init> | `TransientProperty(initializer: () -> T)` A simple wrapper that enables the use of Kotlins "val x by TransientProperty { ... }" syntax. Such a property will not be serialized to disk, and if its missing (or the first time its accessed), the initializer will be used to set it up. Note that the initializer will be called with the TransientProperty object locked.

### Functions

getValue | `operator fun getValue(thisRef: Any?, property: KProperty<*>): T`