SetChange

interface SetChange<E>

The data describing changes to an ObservableSet.

A typical listener has the following structure :

val myListener = myObservableSet.addChangeListener { _, change ->
    if ( change.removed.isNotEmpty() ) {
        // Act on removed items
    }
    if ( change.added.isNotEmpty() ) {
        // Act on data added.
    }
}

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val added: Iterable<E>
Link copied to clipboard
abstract val removed: Iterable<E>

Functions

Link copied to clipboard
abstract fun isAddition(): Boolean
Link copied to clipboard
abstract fun isRemoval(): Boolean