Class MealPlanRecipeItemAdapter


  • public class MealPlanRecipeItemAdapter
    extends MealPlanItemAdapter<Recipe>
    The MealPlanRecipeItemAdapter class binds ArrayList to RecyclerView.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void onBindViewHolder​(androidx.recyclerview.widget.RecyclerView.ViewHolder holder1, int position)
      onBindViewHolder method binds a Recipe object and a ItemViewHolder object.
      • 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

      • MealPlanRecipeItemAdapter

        public MealPlanRecipeItemAdapter()
    • Method Detail

      • onBindViewHolder

        public void onBindViewHolder​(@NonNull
                                     androidx.recyclerview.widget.RecyclerView.ViewHolder holder1,
                                     int position)
        onBindViewHolder method binds a Recipe object and a ItemViewHolder object.
        Overrides:
        onBindViewHolder in class MealPlanItemAdapter<Recipe>
        Parameters:
        holder1 - the view holder
        position - the position of the item in the ArrayList