Context

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

Constructors

Link copied to clipboard
fun Context(data: MutableMap<Session.Context.Key<*>, Session.Context.Item<*>>)

Types

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

Functions

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

Properties

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