MutableCreationExtras

class MutableCreationExtras : CreationExtras


Mutable implementation of CreationExtras

Summary

Public constructors

Public functions

open operator T?
<T : Any?> get(key: CreationExtras.Key<T>)

Returns an element associated with the given key

operator Unit
<T : Any?> set(key: CreationExtras.Key<T>, t: T)

Associates the given key with t

Public constructors

MutableCreationExtras

Added in 2.5.0
MutableCreationExtras(initialExtras: CreationExtras = Empty)
Parameters
initialExtras: CreationExtras = Empty

extras that will be filled into the resulting MutableCreationExtras

Public functions

get

Added in 2.8.0-alpha01
open operator fun <T : Any?> get(key: CreationExtras.Key<T>): T?

Returns an element associated with the given key

set

Added in 2.5.0
operator fun <T : Any?> set(key: CreationExtras.Key<T>, t: T): Unit

Associates the given key with t