public abstract class AbstractAdapter<Item extends IItem> extends java.lang.Object implements IAdapter<Item>
| Modifier and Type | Field and Description |
|---|---|
protected FastAdapter<Item> |
mFastAdapter |
protected int |
mOrder |
| Constructor and Description |
|---|
AbstractAdapter() |
| Modifier and Type | Method and Description |
|---|---|
FastAdapter<Item> |
getFastAdapter()
defines the FastAdapter which manages all the core logic
|
int |
getOrder()
returs the position of this Adapter in the FastAdapter
|
void |
mapPossibleTypes(java.lang.Iterable<Item> items)
internal mapper to remember and add possible types for the RecyclerView
|
void |
setOrder(int order)
sets the position of this Adapter in the FastAdapter
|
AbstractAdapter<Item> |
withFastAdapter(FastAdapter<Item> fastAdapter)
set the FastAdapter which will handle this AbstractAdapter
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAdapterItem, getAdapterItemCount, getAdapterItems, getAdapterPosition, getAdapterPosition, getGlobalPositionprotected FastAdapter<Item extends IItem> mFastAdapter
protected int mOrder
public AbstractAdapter<Item> withFastAdapter(FastAdapter<Item> fastAdapter)
withFastAdapter in interface IAdapter<Item extends IItem>fastAdapter - public FastAdapter<Item> getFastAdapter()
IAdaptergetFastAdapter in interface IAdapter<Item extends IItem>public int getOrder()
public void setOrder(int order)
public void mapPossibleTypes(java.lang.Iterable<Item> items)
mapPossibleTypes in interface IAdapter<Item extends IItem>items -