DiffAdapter

abstract class DiffAdapter<T>(val items: MutableList<T>, val comparison: (first: T, second: T) -> Boolean = { first, second -> first.hashCode() == second.hashCode() })(source)

Inheritors

Constructors

Link copied to clipboard
constructor(items: MutableList<T>, comparison: (first: T, second: T) -> Boolean = { first, second -> first.hashCode() == second.hashCode() })

Types

Link copied to clipboard
inner class GenericDiffCallback(oldList: List<T>, newList: List<T>)

Properties

Link copied to clipboard
val comparison: (first: T, second: T) -> Boolean
Link copied to clipboard
open val items: MutableList<T>

Functions

Link copied to clipboard
open fun getItemCount(): Int
Link copied to clipboard
fun updateList(newList: List<T>)