BaseAdapter

public abstract class BaseAdapter<T extends BaseViewHolder<W>, W extends Object> extends RecyclerView.Adapter<T>

BaseAdapter is an abstract class that holds the data for the recycler view

Parameters

T

is an instance of BaseViewHolder

W

is the data type that the adapter holds

Inheritors

Constructors

Link copied to clipboard

Properties

Link copied to clipboard
private List<W> mData

The data that the adapter holds

Functions

Link copied to clipboard

Gets the count of the data

Link copied to clipboard
private final List<W> getMData()

The data that the adapter holds

Link copied to clipboard
public Unit onBindViewHolder(T holder, Integer position)

Binds the data to the view holder

Link copied to clipboard
public final Unit setData(List<W> data)

Sets the data for the adapter

Link copied to clipboard
private final Unit setMData(List<W> mData)

The data that the adapter holds