CollectionDiffCallback
class CollectionDiffCallback<T>( previousData: List<T>?, nextData: List<T>?, sameItemComparator: (previousItem: T, nextItem: T) -> Boolean? = null, sameContentComparator: (previousItem: T, nextItem: T) -> Boolean? = null) : DiffUtil.Callback
A DiffUtil.Callback that compares two lists of items and returns whether two items are the same.