package com.adealink.weparty.commonui.recycleview.adapter

import android.annotation.SuppressLint
import androidx.recyclerview.widget.DiffUtil

open class DefaultDiffCallback<T: Any> : DiffUtil.ItemCallback<T>() {
    override fun areItemsTheSame(
        oldItem: T,
        newItem: T
    ): Boolean {
        return oldItem === newItem
    }

    @SuppressLint("DiffUtilEquals")
    override fun areContentsTheSame(
        oldItem: T,
        newItem: T
    ): Boolean {
        return oldItem == newItem
    }
}