-
public abstract class DragDropSwipeDiffCallback<T extends Object> extends DiffUtil.Callback
-
-
Constructor Summary
Constructors Constructor Description DragDropSwipeDiffCallback(List<T> oldList, List<T> newList)
-
Method Summary
Modifier and Type Method Description IntegergetOldListSize()IntegergetNewListSize()BooleanareItemsTheSame(Integer oldItemPosition, Integer newItemPosition)BooleanareContentsTheSame(Integer oldPosition, Integer newPosition)abstract BooleanisSameItem(T oldItem, T newItem)Determines whether or not the items are the same item. abstract BooleanisSameContent(T oldItem, T newItem)Determines whether or not the items have the same content. -
-
Method Detail
-
getOldListSize
Integer getOldListSize()
-
getNewListSize
Integer getNewListSize()
-
areItemsTheSame
Boolean areItemsTheSame(Integer oldItemPosition, Integer newItemPosition)
-
areContentsTheSame
Boolean areContentsTheSame(Integer oldPosition, Integer newPosition)
-
isSameItem
abstract Boolean isSameItem(T oldItem, T newItem)
Determines whether or not the items are the same item.
- Parameters:
oldItem- The old item.newItem- The new item.
-
isSameContent
abstract Boolean isSameContent(T oldItem, T newItem)
Determines whether or not the items have the same content.
- Parameters:
oldItem- The old item.newItem- The new item.
-
-
-
-