library / com.camerash.filterdrawer / DiffItemCallback

DiffItemCallback

interface DiffItemCallback<Data>

Interface used for adapting DiffCallback to custom data type

Parameters

Data - The class adaping this interface

Author
Camerash

Functions

hasSameRepresentation

abstract fun hasSameRepresentation(item: Data): Boolean

Provides information on whether the two items looks the same when shown to users You should compare resources shown to users here

isIdentical

abstract fun isIdentical(item: Data): Boolean

Provides information on whether the two items are identical at a data level You should compare IDs or item-specific variables here