Event

sealed class Event<out V>

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

Types

Link copied to clipboard
class Add<V>(index: Int, val newValue: V) : IViewableList.Event<V>
Link copied to clipboard
class Remove<V>(index: Int, val oldValue: V) : IViewableList.Event<V>
Link copied to clipboard
class Update<V>(    index: Int,     val oldValue: V,     val newValue: V) : IViewableList.Event<V>

Properties

Link copied to clipboard
val index: Int
Link copied to clipboard
val newValueOpt: V?

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

Inheritors

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard