class FilterRecyclerViewDiffCallback<Data : DiffItemCallback<Data>> : Callback
DiffUtil Callback used for calculating changes in FilterableRecyclerAdapter
Data
- Your custom data type that implements DiffItemCallback
oldDataList
- The old list of data item
newDataList
- The new list of data item
Author
Camerash
See Also
FilterRecyclerViewDiffCallback(oldDataList: List<Data>, newDataList: List<Data>)
DiffUtil Callback used for calculating changes in FilterableRecyclerAdapter |
fun areContentsTheSame(oldItemPos: Int, newItemPos: Int): Boolean
Return whether two data items looks the same when shown to users |
|
fun areItemsTheSame(oldItemPos: Int, newItemPos: Int): Boolean
Return whether two data items are identical at a data level |
|
fun getNewListSize(): Int
Return the size of the new list of data item |
|
fun getOldListSize(): Int
Return the size of the old list of data item |