BaseDiffAdapter

abstract class BaseDiffAdapter<T : BaseAdapter.BaseViewHolder, K : Idable>(var data: MutableList<K> = mutableListOf(), val headersCount: Int = 0) : BaseAdapter<T>

Inheritors

Constructors

Link copied to clipboard
constructor(data: MutableList<K> = mutableListOf(), headersCount: Int = 0)

Types

Link copied to clipboard
open inner class BaseDiffItems(newItems: List<Idable>, oldItems: List<Idable>) : DiffUtil.Callback

Properties

Link copied to clipboard
open var data: MutableList<K>
Link copied to clipboard
open val headersCount: Int = 0

Functions

Link copied to clipboard
fun bindViewHolder(@NonNull p0: T, p1: Int)
Link copied to clipboard
open fun compareIdsDiff(oldItems: List<Idable>, oldItemPosition: Int, newItems: List<Idable>, newItemPosition: Int): Boolean
Link copied to clipboard
open fun compareItemsDiff(oldItems: List<Idable>, oldItemPosition: Int, newItems: List<Idable>, newItemPosition: Int): Boolean
Link copied to clipboard
Link copied to clipboard
open override fun getItemCount(): Int
Link copied to clipboard
open fun getItemId(p0: Int): Long
Link copied to clipboard
open fun getItemViewType(p0: Int): Int
Link copied to clipboard
abstract fun getLayout(viewType: Int): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun notifyItemMoved(p0: Int, p1: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun onBindViewHolder(@NonNull p0: T, p1: Int)
open fun onBindViewHolder(@NonNull p0: T, p1: Int, @NonNull p2: MutableList<Any>)
Link copied to clipboard
open override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): T
Link copied to clipboard
Link copied to clipboard
open override fun onViewAttachedToWindow(holder: T)
Link copied to clipboard
open override fun onViewDetachedFromWindow(holder: T)
Link copied to clipboard
open fun onViewRecycled(@NonNull p0: T)
Link copied to clipboard
open fun setHasStableIds(p0: Boolean)
Link copied to clipboard
open fun update(newItems: List<K>)