BaseDiffCallback

class BaseDiffCallback<T : Any>(val itemSame: (T, T) -> Boolean = { a, b -> a.hashCode() == b.hashCode() }, val contentSame: (T, T) -> Boolean = { a, b -> a.hashCode() == b.hashCode() })(source)

Constructors

Link copied to clipboard
constructor(itemSame: (T, T) -> Boolean = { a, b -> a.hashCode() == b.hashCode() }, contentSame: (T, T) -> Boolean = { a, b -> a.hashCode() == b.hashCode() })

Properties

Link copied to clipboard
val contentSame: (T, T) -> Boolean
Link copied to clipboard
val itemSame: (T, T) -> Boolean

Functions

Link copied to clipboard
open fun areContentsTheSame(oldItem: T, newItem: T): Boolean
Link copied to clipboard
open fun areItemsTheSame(oldItem: T, newItem: T): Boolean
Link copied to clipboard
open fun getChangePayload(oldItem: T, newItem: T): Any