Differences

class Differences<T>(changes: List<Difference<T>>, movesComputed: Boolean = false) : Iterable<Difference<T>>

The list of differences between two lists compared using compare.

Constructors

Link copied to clipboard
constructor(changes: List<Difference<T>>, movesComputed: Boolean = false)

Functions

Link copied to clipboard

No "moves" (Delete followed by Insert or vice versa) are calculated by default to improve performance in cases where they are not needed. This method computes the moves and updates the Insert, Delete pairs to point to their respective origin and destination indexes.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open operator override fun iterator(): Iterator<Difference<T>>
Link copied to clipboard
fun <R> map(transform: (T) -> R): Differences<R>
Link copied to clipboard
open override fun toString(): String