-
- All Implemented Interfaces:
-
app.moviebase.androidx.widget.recyclerview.adapter.ItemAdapter,app.moviebase.androidx.widget.recyclerview.adapter.RecyclerViewAdapterBase
@Deprecated(message = use the native solution with ListAdapter, replaceWith = @ReplaceWith(imports = {app.moviebase.androidx.widget.recyclerview.adapter.ListAdapter}, expression = ListAdapter)) public abstract class AbstractListRecyclerAdapter<T extends Object> extends RecyclerView.Adapter<RecyclerView.ViewHolder> implements RecyclerViewAdapterBase<T>
-
-
Field Summary
Fields Modifier and Type Field Description private List<T>dataprivate final BooleanisDataValidprivate final <ERROR CLASS>selectionprivate final RecyclerAdapterConfig<T>config
-
Constructor Summary
Constructors Constructor Description AbstractListRecyclerAdapter(RecyclerAdapterConfig<T> config)
-
Method Summary
-
Methods inherited from class app.moviebase.androidx.widget.recyclerview.adapter.AbstractListRecyclerAdapter
bindViewHolder, canRestoreState, createViewHolder, findRelativeAdapterPositionIn, getStateRestorationPolicy, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onBind, onBindFooter, onClear, onCreate, onCreateFooter, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, registerAdapterDataObserver, setHasStableIds, setStateRestorationPolicy, unregisterAdapterDataObserver, useFooter, useHeader -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
AbstractListRecyclerAdapter
AbstractListRecyclerAdapter(RecyclerAdapterConfig<T> config)
-
-
Method Detail
-
getIsDataValid
final Boolean getIsDataValid()
-
getSelection
final <ERROR CLASS> getSelection()
-
getConfig
final RecyclerAdapterConfig<T> getConfig()
-
onCreateViewHolder
RecyclerView.ViewHolder onCreateViewHolder(ViewGroup parent, Integer viewType)
-
onBindViewHolder
<ERROR CLASS> onBindViewHolder(RecyclerView.ViewHolder holder, Integer position)
-
onBindViewHolder
Unit onBindViewHolder(RecyclerView.ViewHolder holder, Integer position, List<Object> payloads)
If payloads is empty then the regular bind view holder will be called.
-
onViewRecycled
Unit onViewRecycled(RecyclerView.ViewHolder holder)
-
getItemCount
Integer getItemCount()
-
getItemViewType
Integer getItemViewType(Integer position)
-
swapPosition
final Unit swapPosition(Integer fromPosition, Integer toPosition)
-
updateData
final Unit updateData(List<T> newList)
-
-
-
-