DittoDiff

data class DittoDiff(var insertions: Set<Int> = emptySet(), var deletions: Set<Int> = emptySet(), var updates: Set<Int> = emptySet(), var moves: List<Move> = emptyList())

Represents a diff between two lists.

Create a diff between lists of DittoQueryResultItem using a DittoDiffer.

Constructors

Link copied to clipboard
constructor(insertions: Set<Int> = emptySet(), deletions: Set<Int> = emptySet(), updates: Set<Int> = emptySet(), moves: List<Move> = emptyList())

Properties

Link copied to clipboard

The set of indexes in the old list at which old items have been deleted.

Link copied to clipboard

The set of indexes in the new list at which new items have been inserted.

Link copied to clipboard

A list of Move representing a move of an item from a particular index in the old list to a particular index in the new list.

Link copied to clipboard

The set of indexes in the new list at which items have been updated.