EntryEvent

sealed interface EntryEvent<out K : Any, out V : Any> : MapEvent<K, V> (source)

Mutation event for a specific entry.

Inheritors

Types

Link copied to clipboard
class Removed<out K : Any, out V : Any>(val key: K, val oldValue: V) : MapEvent.EntryEvent<K, V>

Entry with key and value oldValue has been removed

Link copied to clipboard
class Upsert<out K : Any, out V : Any>(val key: K, val oldValue: V?, val newValue: V) : MapEvent.EntryEvent<K, V>

Entry with key has been updated from oldValue to newValue. An insert will have a null oldValue.

Properties

Link copied to clipboard
abstract val key: K
Link copied to clipboard
abstract val newValue: V?
Link copied to clipboard
abstract val oldValue: V?

Functions

Link copied to clipboard
open operator fun component1(): K
Link copied to clipboard
open operator fun component2(): V?
Link copied to clipboard
open operator fun component3(): V?