origin

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.

Return

the original index of the provided item, or null if that item is new to the list, or moves weren't computed

Parameters

of

the given item

See also