added in version 22.1.0
belongs to Maven artifact


public abstract class SortedListAdapterCallback
extends Callback<T2>


A SortedList.Callback implementation that can bind a SortedList to a RecyclerView.Adapter.


Public constructors

SortedListAdapterCallback(Adapter adapter)

Creates a SortedList.Callback that will forward data change events to the provided Adapter.

Public methods

void onChanged(int position, int count, Object payload)

Called when count number of items are updated at the given position.

void onChanged(int position, int count)

Called by the SortedList when the item at the given position is updated.

void onInserted(int position, int count)
void onMoved(int fromPosition, int toPosition)
void onRemoved(int position, int count)

Inherited methods

From class
From class java.lang.Object
From interface java.util.Comparator