Class BaseChoiceAdapter

    • Constructor Summary

      Constructors 
      Constructor Description
      BaseChoiceAdapter​(java.util.List<Option> options)
      Simple constructor
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getItemCount()  
      java.util.List<Option> getSelection()
      Returns list of selected options
      • 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, onBindViewHolder, onCreateViewHolder, 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
    • Field Detail

      • mOptions

        protected java.util.List<Option> mOptions
      • mSelectedOptions

        protected java.util.List<Option> mSelectedOptions
    • Constructor Detail

      • BaseChoiceAdapter

        public BaseChoiceAdapter​(java.util.List<Option> options)
        Simple constructor
        Parameters:
        options - list of Option
    • Method Detail

      • getItemCount

        public int getItemCount()
        Specified by:
        getItemCount in class androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
      • getSelection

        public java.util.List<Option> getSelection()
        Returns list of selected options
        Returns:
        list of selected options