public interface IAdapter<Item extends IItem>
| Modifier and Type | Method and Description |
|---|---|
Item |
getAdapterItem(int position) |
int |
getAdapterItemCount()
defines the count of items of THIS adapter
|
java.util.List<Item> |
getAdapterItems() |
int |
getAdapterPosition(Item item)
Searches for the given item and calculates its relative position
|
int |
getAdapterPosition(long identifier)
Searches for the given item and calculates its relative position
|
FastAdapter<Item> |
getFastAdapter()
defines the FastAdapter which manages all the core logic
|
int |
getGlobalPosition(int position)
Returns the global position based on the relative position given
|
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
|
IAdapter<Item> |
withFastAdapter(FastAdapter<Item> fastAdapter)
defines the FastAdapter which manages all the core logic
|
FastAdapter<Item> getFastAdapter()
IAdapter<Item> withFastAdapter(FastAdapter<Item> fastAdapter)
void mapPossibleTypes(java.lang.Iterable<Item> items)
items - int getOrder()
void setOrder(int order)
int getAdapterItemCount()
java.util.List<Item> getAdapterItems()
Item getAdapterItem(int position)
position - the relative positionint getAdapterPosition(Item item)
item - the item which is searched forint getAdapterPosition(long identifier)
identifier - the identifier of an item which is searched forint getGlobalPosition(int position)
position - the relative position within this adapter