destination

fun destination(of: T): Int?

This method indicates if a deleted item was re-added to 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 destination index of the provided item, or null if that item does not remain in the list, or moves weren't computed

Parameters

of

the given item

See also