public class DiffArrayCallback<T>
extends android.support.v7.util.DiffUtil.Callback
Modifier and Type | Field and Description |
---|---|
protected T[] |
items |
protected T[] |
newItems |
Constructor and Description |
---|
DiffArrayCallback() |
Modifier and Type | Method and Description |
---|---|
boolean |
areContentsTheSame(int oldItemPosition,
int newItemPosition) |
boolean |
areItemsTheSame(int oldItemPosition,
int newItemPosition) |
T[] |
getItems() |
T[] |
getNewItems() |
int |
getNewListSize() |
int |
getOldListSize() |
void |
setArrays(T[] items,
T[] newItems) |
public T[] getItems()
public T[] getNewItems()
public int getOldListSize()
getOldListSize
in class android.support.v7.util.DiffUtil.Callback
public int getNewListSize()
getNewListSize
in class android.support.v7.util.DiffUtil.Callback
public boolean areItemsTheSame(int oldItemPosition, int newItemPosition)
areItemsTheSame
in class android.support.v7.util.DiffUtil.Callback
public boolean areContentsTheSame(int oldItemPosition, int newItemPosition)
areContentsTheSame
in class android.support.v7.util.DiffUtil.Callback