public abstract class AbstractListModel<T_ModelEvent extends ModelEvent,T_ModelListener extends ModelObserver<T_ModelEvent>> extends AbstractModel<T_ModelEvent,T_ModelListener> implements ListModel
AbstractListModel
extends AbstractModel
to provide an abstract base class
for implementing ListModel
s for RecyclerViewAdapter
s.params
Constructor and Description |
---|
AbstractListModel() |
Modifier and Type | Method and Description |
---|---|
boolean |
canDismiss(int position) |
long |
getItemId(int position) |
boolean |
hasStableIds() |
void |
notifyDataChanged() |
void |
registerAdapterDataObserver(RecyclerView.AdapterDataObserver observer) |
void |
remove(int position) |
void |
unregisterAdapterDataObserver(RecyclerView.AdapterDataObserver observer) |
getObserver, notifyModelChanged
destroy, getLifecycleState, getParams, getState, isDestroyed, isPaused, isRestarted, isResumed, isStarted, isStopped, onCreate, onDestroy, onPause, onRestart, onResume, onStart, onStop, pause, restart, resume, start, start, stop
onPlugged, onPluginPlugged, onPluginUnplugged, onUnplugged
getScope, setScope
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getItem, getItemCount, isEmpty, updateViewHolder
onPlugged, onPluginPlugged, onPluginUnplugged, onUnplugged
public boolean hasStableIds()
hasStableIds
in interface ListModel
public boolean canDismiss(int position)
canDismiss
in interface ListModel
public void registerAdapterDataObserver(RecyclerView.AdapterDataObserver observer)
registerAdapterDataObserver
in interface ListModel
public void unregisterAdapterDataObserver(RecyclerView.AdapterDataObserver observer)
unregisterAdapterDataObserver
in interface ListModel
public void notifyDataChanged()
notifyDataChanged
in interface ListModel