Context

class Context(data: MutableMap<Session.Context.Key<*>, Session.Context.Item<*>>)

Types

Item
Link copied to clipboard
common
class Item<T : Any>(key: Session.Context.Key<T>, revision: Int, value: T)
Key
Link copied to clipboard
common
interface Key<VALUE : Any>
Mutator
Link copied to clipboard
common
class Mutator(oldContext: Session.Context, modifications: MutableMap<Session.Context.Key<Any>, Session.Context.Mutator.Action>)

Functions

clear
Link copied to clipboard
common
fun clear()
copy
Link copied to clipboard
common
fun copy(): Session.Context
get
Link copied to clipboard
common
operator fun <VALUE : Any> get(key: Session.Context.Key<VALUE>): Session.Context.Item<VALUE>?
iterator
Link copied to clipboard
common
operator fun iterator(): Iterator<Session.Context.Item<*>>
remove
Link copied to clipboard
common
fun <VALUE : Any> remove(key: Session.Context.Key<VALUE>): Session.Context.Item<VALUE>?
set
Link copied to clipboard
common
operator fun <VALUE : Any> set(key: Session.Context.Key<VALUE>, item: Session.Context.Item<VALUE>)

Properties

keys
Link copied to clipboard
common
val keys: Set<Session.Context.Key<*>>