Event

sealed class Event<K, out V>

Represents an addition, update or removal of an element in the map.

Inheritors

Types

Link copied to clipboard
class Add<K, V>(key: K, val newValue: V) : IViewableMap.Event<K, V>
Link copied to clipboard
class Remove<K, V>(key: K, val oldValue: V) : IViewableMap.Event<K, V>
Link copied to clipboard
class Update<K, V>(key: K, val oldValue: V, val newValue: V) : IViewableMap.Event<K, V>

Properties

Link copied to clipboard
val key: K
Link copied to clipboard

Returns the new value for add or update events, or null for removal events.