This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public abstract class BaseAdapter<T, VH extends BaseViewHolder<T>> extends RecyclerView.Adapter<VH> { | |
private List<T> items; | |
// Missing: setItems(), addItem(), removeItem(), ... | |
@Override | |
public final void onBindViewHolder(VH vh, int position) { | |
T item = items.get(position); | |
vh.performBind(item, position); |