app / de.uniks.codliners.stock_simulator.ui.search / SymbolListAdapter / DiffCallback

DiffCallback

companion object DiffCallback : ItemCallback<Symbol>

DiffUtil.ItemCallback for Symbols.

Author
Jan Müller

Companion Object Functions

areContentsTheSame

Checks if two Symbols are equal.

fun areContentsTheSame(oldItem: Symbol, newItem: Symbol): Boolean

areItemsTheSame

Checks if two Symbols have the same id.

fun areItemsTheSame(oldItem: Symbol, newItem: Symbol): Boolean