Created
December 11, 2018 07:08
-
-
Save plusmobileapps/ffe66834d53f7c4ff9d097bf9c9237d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RecyclerViewDiffUtil : DiffUtil.ItemCallback<DataWrapper>() { | |
override fun areItemsTheSame(oldItem: DataWrapper, newItem: DataWrapper): Boolean { | |
return oldItem.id == newItem.id | |
} | |
override fun areContentsTheSame(oldItem: DataWrapper, newItem: DataWrapper): Boolean { | |
return oldItem == newItem | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment