app / de.uniks.codliners.stock_simulator.ui.account / DepotQuoteListAdapter

DepotQuoteListAdapter

class DepotQuoteListAdapter : ListAdapter<DepotQuote, ViewHolder>

ListAdapter for DepotQuotes.

Types

DiffCallback

DiffUtil.ItemCallback for DepotQuotes.

companion object DiffCallback : ItemCallback<DepotQuote>

ViewHolder

RecyclerView.ViewHolder for CardDepotQuoteBinding.

inner class ViewHolder : ViewHolder

Constructors

<init>

ListAdapter for DepotQuotes.

DepotQuoteListAdapter(onClickListener: OnClickListener<DepotQuote>)

Functions

onBindViewHolder

Binds a DepotQuote to a ViewHolder.

fun onBindViewHolder(holder: ViewHolder, position: Int): Unit

onCreateViewHolder

Creates a ViewHolder by inflating a CardDepotQuoteBinding.

fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder

Companion Object Functions

areContentsTheSame

Checks if two DepotQuotes are equal.

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

areItemsTheSame

Checks if two DepotQuotes have the same id.

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