Skip navigation links
A C D F G I L O R S 

A

AbsDelegationAdapter<T> - Class in com.hannesdorfmann.adapterdelegates4
AbsDelegationAdapter() - Constructor for class com.hannesdorfmann.adapterdelegates4.AbsDelegationAdapter
 
AbsDelegationAdapter(AdapterDelegatesManager<T>) - Constructor for class com.hannesdorfmann.adapterdelegates4.AbsDelegationAdapter
 
AbsDelegationAdapter(AdapterDelegate<T>...) - Constructor for class com.hannesdorfmann.adapterdelegates4.AbsDelegationAdapter
Adds a list of AdapterDelegates
AbsFallbackAdapterDelegate<T> - Class in com.hannesdorfmann.adapterdelegates4
This class can be used as base class for a fallback delegate AdapterDelegatesManager.setFallbackDelegate(AdapterDelegate).
AbsFallbackAdapterDelegate() - Constructor for class com.hannesdorfmann.adapterdelegates4.AbsFallbackAdapterDelegate
 
AbsListItemAdapterDelegate<I extends T,T,VH extends androidx.recyclerview.widget.RecyclerView.ViewHolder> - Class in com.hannesdorfmann.adapterdelegates4
A simplified AdapterDelegate when the underlying adapter's dataset is a List.
AbsListItemAdapterDelegate() - Constructor for class com.hannesdorfmann.adapterdelegates4.AbsListItemAdapterDelegate
 
AdapterDelegate<T> - Class in com.hannesdorfmann.adapterdelegates4
This delegate provide method to hook in this delegate to RecyclerView.Adapter lifecycle.
AdapterDelegate() - Constructor for class com.hannesdorfmann.adapterdelegates4.AdapterDelegate
 
AdapterDelegatesManager<T> - Class in com.hannesdorfmann.adapterdelegates4
This class is the element that ties RecyclerView.Adapter together with AdapterDelegate.
AdapterDelegatesManager() - Constructor for class com.hannesdorfmann.adapterdelegates4.AdapterDelegatesManager
 
addDelegate(AdapterDelegate<T>) - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegatesManager
addDelegate(int, AdapterDelegate<T>) - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegatesManager
Adds an AdapterDelegate with the specified view type.
addDelegate(int, boolean, AdapterDelegate<T>) - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegatesManager
AsyncListDifferDelegationAdapter<T> - Class in com.hannesdorfmann.adapterdelegates4
An implementation of an Adapter that already uses a AdapterDelegatesManager pretty same as AbsDelegationAdapter but also uses AsyncListDiffer from support library 27.0.1 for calculating diffs between old and new collections of items and does this on background thread.
AsyncListDifferDelegationAdapter(DiffUtil.ItemCallback<T>) - Constructor for class com.hannesdorfmann.adapterdelegates4.AsyncListDifferDelegationAdapter
 
AsyncListDifferDelegationAdapter(DiffUtil.ItemCallback<T>, AdapterDelegatesManager<List<T>>) - Constructor for class com.hannesdorfmann.adapterdelegates4.AsyncListDifferDelegationAdapter
 
AsyncListDifferDelegationAdapter(AsyncDifferConfig, AdapterDelegatesManager<List<T>>) - Constructor for class com.hannesdorfmann.adapterdelegates4.AsyncListDifferDelegationAdapter
 

C

com.hannesdorfmann.adapterdelegates4 - package com.hannesdorfmann.adapterdelegates4
 

D

delegates - Variable in class com.hannesdorfmann.adapterdelegates4.AdapterDelegatesManager
Map for ViewType to AdapterDelegate
delegatesManager - Variable in class com.hannesdorfmann.adapterdelegates4.AbsDelegationAdapter
 
delegatesManager - Variable in class com.hannesdorfmann.adapterdelegates4.AsyncListDifferDelegationAdapter
 
differ - Variable in class com.hannesdorfmann.adapterdelegates4.AsyncListDifferDelegationAdapter
 

F

FALLBACK_DELEGATE_VIEW_TYPE - Static variable in class com.hannesdorfmann.adapterdelegates4.AdapterDelegatesManager
ViewType for the fallback delegate
fallbackDelegate - Variable in class com.hannesdorfmann.adapterdelegates4.AdapterDelegatesManager
 

G

getDelegateForViewType(int) - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegatesManager
Get the AdapterDelegate associated with the given view type integer
getFallbackDelegate() - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegatesManager
Get the fallback delegate
getItemCount() - Method in class com.hannesdorfmann.adapterdelegates4.AsyncListDifferDelegationAdapter
 
getItemCount() - Method in class com.hannesdorfmann.adapterdelegates4.ListDelegationAdapter
 
getItems() - Method in class com.hannesdorfmann.adapterdelegates4.AbsDelegationAdapter
Get the items / data source of this adapter
getItems() - Method in class com.hannesdorfmann.adapterdelegates4.AsyncListDifferDelegationAdapter
Get the items / data source of this adapter
getItemViewType(int) - Method in class com.hannesdorfmann.adapterdelegates4.AbsDelegationAdapter
 
getItemViewType(T, int) - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegatesManager
Must be called from RecyclerView.Adapter#getItemViewType(int).
getItemViewType(int) - Method in class com.hannesdorfmann.adapterdelegates4.AsyncListDifferDelegationAdapter
 
getViewType(AdapterDelegate<T>) - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegatesManager
Get the view type integer for the given AdapterDelegate

I

isForViewType(Object, int) - Method in class com.hannesdorfmann.adapterdelegates4.AbsFallbackAdapterDelegate
Not needed, because never called for fallback adapter delegates.
isForViewType(List<T>, int) - Method in class com.hannesdorfmann.adapterdelegates4.AbsListItemAdapterDelegate
 
isForViewType(T, List<T>, int) - Method in class com.hannesdorfmann.adapterdelegates4.AbsListItemAdapterDelegate
Called to determine whether this AdapterDelegate is the responsible for the given item in the list or not element
isForViewType(T, int) - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegate
Called to determine whether this AdapterDelegate is the responsible for the given data element.
items - Variable in class com.hannesdorfmann.adapterdelegates4.AbsDelegationAdapter
 

L

ListDelegationAdapter<T extends java.util.List<?>> - Class in com.hannesdorfmann.adapterdelegates4
An adapter implementation designed for items organized in a List.
ListDelegationAdapter() - Constructor for class com.hannesdorfmann.adapterdelegates4.ListDelegationAdapter
 
ListDelegationAdapter(AdapterDelegatesManager<T>) - Constructor for class com.hannesdorfmann.adapterdelegates4.ListDelegationAdapter
 
ListDelegationAdapter(AdapterDelegate<T>...) - Constructor for class com.hannesdorfmann.adapterdelegates4.ListDelegationAdapter
Adds a list of AdapterDelegates

O

onBindViewHolder(RecyclerView.ViewHolder, int) - Method in class com.hannesdorfmann.adapterdelegates4.AbsDelegationAdapter
 
onBindViewHolder(RecyclerView.ViewHolder, int, List) - Method in class com.hannesdorfmann.adapterdelegates4.AbsDelegationAdapter
 
onBindViewHolder(List<T>, int, RecyclerView.ViewHolder, List<Object>) - Method in class com.hannesdorfmann.adapterdelegates4.AbsListItemAdapterDelegate
 
onBindViewHolder(I, VH, List<Object>) - Method in class com.hannesdorfmann.adapterdelegates4.AbsListItemAdapterDelegate
Called to bind the RecyclerView.ViewHolder to the item of the dataset
onBindViewHolder(T, int, RecyclerView.ViewHolder, List<Object>) - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegate
Called to bind the RecyclerView.ViewHolder to the item of the datas source set
onBindViewHolder(T, int, RecyclerView.ViewHolder, List) - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegatesManager
Must be called fromRecyclerView.Adapter#onBindViewHolder(RecyclerView.ViewHolder, int, List)
onBindViewHolder(T, int, RecyclerView.ViewHolder) - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegatesManager
Must be called from RecyclerView.Adapter#onBindViewHolder(RecyclerView.ViewHolder, int, List)
onBindViewHolder(RecyclerView.ViewHolder, int) - Method in class com.hannesdorfmann.adapterdelegates4.AsyncListDifferDelegationAdapter
 
onBindViewHolder(RecyclerView.ViewHolder, int, List) - Method in class com.hannesdorfmann.adapterdelegates4.AsyncListDifferDelegationAdapter
 
onCreateViewHolder(ViewGroup, int) - Method in class com.hannesdorfmann.adapterdelegates4.AbsDelegationAdapter
 
onCreateViewHolder(ViewGroup) - Method in class com.hannesdorfmann.adapterdelegates4.AbsListItemAdapterDelegate
Creates the RecyclerView.ViewHolder for the given data source item
onCreateViewHolder(ViewGroup) - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegate
Creates the RecyclerView.ViewHolder for the given data source item
onCreateViewHolder(ViewGroup, int) - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegatesManager
This method must be called in RecyclerView.Adapter#onCreateViewHolder(ViewGroup, int)
onCreateViewHolder(ViewGroup, int) - Method in class com.hannesdorfmann.adapterdelegates4.AsyncListDifferDelegationAdapter
 
onFailedToRecycleView(RecyclerView.ViewHolder) - Method in class com.hannesdorfmann.adapterdelegates4.AbsDelegationAdapter
 
onFailedToRecycleView(RecyclerView.ViewHolder) - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegate
Called by the RecyclerView if a ViewHolder created by this Adapter cannot be recycled due to its transient state.
onFailedToRecycleView(RecyclerView.ViewHolder) - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegatesManager
Must be called from RecyclerView.Adapter#onFailedToRecycleView(RecyclerView.ViewHolder)
onFailedToRecycleView(RecyclerView.ViewHolder) - Method in class com.hannesdorfmann.adapterdelegates4.AsyncListDifferDelegationAdapter
 
onViewAttachedToWindow(RecyclerView.ViewHolder) - Method in class com.hannesdorfmann.adapterdelegates4.AbsDelegationAdapter
 
onViewAttachedToWindow(RecyclerView.ViewHolder) - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegate
Called when a view created by this adapter has been attached to a window.
onViewAttachedToWindow(RecyclerView.ViewHolder) - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegatesManager
Must be called from RecyclerView.Adapter#onViewAttachedToWindow(RecyclerView.ViewHolder)
onViewAttachedToWindow(RecyclerView.ViewHolder) - Method in class com.hannesdorfmann.adapterdelegates4.AsyncListDifferDelegationAdapter
 
onViewDetachedFromWindow(RecyclerView.ViewHolder) - Method in class com.hannesdorfmann.adapterdelegates4.AbsDelegationAdapter
 
onViewDetachedFromWindow(RecyclerView.ViewHolder) - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegate
Called when a view created by this adapter has been detached from its window.
onViewDetachedFromWindow(RecyclerView.ViewHolder) - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegatesManager
Must be called from RecyclerView.Adapter#onViewDetachedFromWindow(RecyclerView.ViewHolder)
onViewDetachedFromWindow(RecyclerView.ViewHolder) - Method in class com.hannesdorfmann.adapterdelegates4.AsyncListDifferDelegationAdapter
 
onViewRecycled(RecyclerView.ViewHolder) - Method in class com.hannesdorfmann.adapterdelegates4.AbsDelegationAdapter
 
onViewRecycled(RecyclerView.ViewHolder) - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegate
Called when a view created by this adapter has been recycled.
onViewRecycled(RecyclerView.ViewHolder) - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegatesManager
Must be called from RecyclerView.Adapter#onViewRecycled(RecyclerView.ViewHolder)
onViewRecycled(RecyclerView.ViewHolder) - Method in class com.hannesdorfmann.adapterdelegates4.AsyncListDifferDelegationAdapter
 

R

removeDelegate(AdapterDelegate<T>) - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegatesManager
Removes a previously registered delegate if and only if the passed delegate is registered (checks the reference of the object).
removeDelegate(int) - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegatesManager
Removes the adapterDelegate for the given view types.

S

setFallbackDelegate(AdapterDelegate<T>) - Method in class com.hannesdorfmann.adapterdelegates4.AdapterDelegatesManager
Set a fallback delegate that should be used if no AdapterDelegate has been found that can handle a certain view type.
setItems(T) - Method in class com.hannesdorfmann.adapterdelegates4.AbsDelegationAdapter
Set the items / data source of this adapter
setItems(List<T>) - Method in class com.hannesdorfmann.adapterdelegates4.AsyncListDifferDelegationAdapter
Set the items / data source of this adapter
A C D F G I L O R S 
Skip navigation links