Class CategoriesListAdapter
-
- All Implemented Interfaces:
public final class CategoriesListAdapter extends RecyclerView.Adapter<CategoriesListAdapter.CategoriesListViewHolder>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
CategoriesListAdapter.CategoriesListViewHolder
-
Field Summary
Fields Modifier and Type Field Description private final Function1<PoiCategory, Unit>
listener
-
Constructor Summary
Constructors Constructor Description CategoriesListAdapter(List<PoiCategory> categoriesList, Function1<PoiCategory, Unit> listener)
-
Method Summary
Modifier and Type Method Description final Function1<PoiCategory, Unit>
getListener()
CategoriesListAdapter.CategoriesListViewHolder
onCreateViewHolder(ViewGroup viewGroup, Integer position)
Integer
getItemCount()
Unit
onBindViewHolder(CategoriesListAdapter.CategoriesListViewHolder categoriesListViewHolder, Integer position)
-
Methods inherited from class androidx.recyclerview.widget.RecyclerView.Adapter
bindViewHolder, createViewHolder, getItemId, getItemViewType, hasObservers, hasStableIds, notifyDataSetChanged, notifyItemChanged, notifyItemChanged, notifyItemInserted, notifyItemMoved, notifyItemRangeChanged, notifyItemRangeChanged, notifyItemRangeInserted, notifyItemRangeRemoved, notifyItemRemoved, onAttachedToRecyclerView, onBindViewHolder, onDetachedFromRecyclerView, onFailedToRecycleView, onViewAttachedToWindow, onViewDetachedFromWindow, onViewRecycled, registerAdapterDataObserver, setHasStableIds, unregisterAdapterDataObserver
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
CategoriesListAdapter
CategoriesListAdapter(List<PoiCategory> categoriesList, Function1<PoiCategory, Unit> listener)
-
-
Method Detail
-
getListener
final Function1<PoiCategory, Unit> getListener()
-
onCreateViewHolder
CategoriesListAdapter.CategoriesListViewHolder onCreateViewHolder(ViewGroup viewGroup, Integer position)
-
getItemCount
Integer getItemCount()
-
onBindViewHolder
Unit onBindViewHolder(CategoriesListAdapter.CategoriesListViewHolder categoriesListViewHolder, Integer position)
-
-
-
-