public class SimpleDiffCallback<T extends SimpleDiffCallback.Comparable<T>>
extends DiffUtil.Callback
Modifier and Type | Class and Description |
---|---|
static interface |
SimpleDiffCallback.Comparable<T> |
Constructor and Description |
---|
SimpleDiffCallback(java.util.List<T> oldItems,
java.util.List<T> newItems) |
Modifier and Type | Method and Description |
---|---|
boolean |
areContentsTheSame(int oldItemPosition,
int newItemPosition) |
boolean |
areItemsTheSame(int oldItemPosition,
int newItemPosition) |
int |
getNewListSize() |
int |
getOldListSize() |