Insert

class Insert<T>(items: List<T>) : Difference<T>

Indicates that a region of the original list compared via compare has items inserted.

Constructors

Link copied to clipboard
constructor(vararg items: T)
constructor(items: List<T>)

Inherited properties

Link copied to clipboard
var items: List<T>

The set of items in the list that "changed"

Functions

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 override fun <R> map(block: (T) -> R): Difference<R>
Link copied to clipboard
fun origin(of: T): Int?

This method indicates if an inserted item was previously in the list at some index. It should be used along with Differences.computeMoves to check whether an item has actually been moved in the list.

Link copied to clipboard
open override fun toString(): String