ListChangeSet

interface ListChangeSet

This interface models the changes that can occur to a list.

Types

Range
Link copied to clipboard
data class Range(startIndex: Int, length: Int)

Defines a range of elements in a list.

Properties

changeRanges
Link copied to clipboard
abstract val changeRanges: Array<ListChangeSet.Range>

The modified ranges of objects in the new version of the collection. It will be set as a zero-sized array if no objects were changed.

changes
Link copied to clipboard
abstract val changes: IntArray

The modified indices in the new version of the collection.

deletionRanges
Link copied to clipboard
abstract val deletionRanges: Array<ListChangeSet.Range>

The deleted ranges of objects in the previous version of the collection. It will be set as a zero-sized array if no objects were deleted.

deletions
Link copied to clipboard
abstract val deletions: IntArray

The deleted indices in the previous version of the collection. It will be set as a zero-sized array if no objects were deleted.

insertionRanges
Link copied to clipboard
abstract val insertionRanges: Array<ListChangeSet.Range>

The inserted ranges of objects in the new version of the collection. It will be set as a zero-sized array if no objects were inserted.

insertions
Link copied to clipboard
abstract val insertions: IntArray

The inserted indices in the new version of the collection. It will be set as a zero-sized array if no objects were inserted.

Inheritors

UpdatedList
Link copied to clipboard
UpdatedResults
Link copied to clipboard