ProductDiffCallback

class ProductDiffCallback(oldList: MutableList<Productz>, newList: MutableList<Productz>) : DiffUtil.Callback

Implementation of DiffUtil.Callback for a mutable list of Productz objects.

Parameters

oldList
newList

Constructors

Link copied to clipboard
fun ProductDiffCallback(oldList: MutableList<Productz>, newList: MutableList<Productz>)

Functions

Link copied to clipboard
open override fun areContentsTheSame(oldItemPosition: Int, newItemPosition: Int): Boolean
Link copied to clipboard
open override fun areItemsTheSame(oldItemPosition: Int, newItemPosition: Int): Boolean
Link copied to clipboard
open fun getChangePayload(p0: Int, p1: Int): Any?
Link copied to clipboard
open override fun getNewListSize(): Int
Link copied to clipboard
open override fun getOldListSize(): Int