Class DynamicDataBinder<T,VH extends RecyclerView.ViewHolder>
java.lang.Object
com.pranavpandey.android.dynamic.support.recyclerview.binder.DynamicRecyclerViewBinder<VH>
com.pranavpandey.android.dynamic.support.recyclerview.binder.DynamicDataBinder<T,VH>
- Type Parameters:
T
- The type of the data this binder will receive.VH
- The type of the dynamic recycler view binder.
- Direct Known Subclasses:
DynamicQueryBinder
,InfoBigBinder
,ItemBinder
public abstract class DynamicDataBinder<T,VH extends RecyclerView.ViewHolder>
extends DynamicRecyclerViewBinder<VH>
A
DynamicRecyclerViewBinder
to bind the generic data that can be used
with the DynamicBinderAdapter
.-
Constructor Summary
ConstructorDescriptionDynamicDataBinder
(DynamicBinderAdapter<?> binderAdapter) Constructor to initialize an object of this class. -
Method Summary
Methods inherited from class com.pranavpandey.android.dynamic.support.recyclerview.binder.DynamicRecyclerViewBinder
getBinderAdapter, getRecyclerViewAdapter, notifyBinderDataSetChanged, notifyBinderItemChanged, notifyBinderItemInserted, notifyBinderItemMoved, notifyBinderItemRangeChanged, notifyBinderItemRangeInserted, notifyBinderItemRangeRemoved, notifyBinderItemRemoved, notifyDataSetChanged, onBindViewHolder, onCreateViewHolder
-
Constructor Details
-
Method Details
-
getItemCount
public int getItemCount()Description copied from class:DynamicRecyclerViewBinder
Returns the total no. of items in this data binder.- Specified by:
getItemCount
in classDynamicRecyclerViewBinder<VH extends RecyclerView.ViewHolder>
- Returns:
- The total no. of items in this data binder.
-
getData
Get the data used by this binder.- Returns:
- The data used by this binder.
-
setData
Set the data for this binder.- Parameters:
data
- The data to be set.
-
setData
Set the data for this binder.- Parameters:
data
- The data to be set.position
- The binder position to be notified.
-