-
public class ChannelListDiffCallback extends DiffUtil.Callback
-
-
Constructor Summary
Constructors Constructor Description ChannelListDiffCallback(List<Channel> oldList, List<Channel> newList)
-
Method Summary
Modifier and Type Method Description intgetOldListSize()intgetNewListSize()booleanareItemsTheSame(int oldItemPosition, int newItemPosition)booleanareContentsTheSame(int oldItemPosition, int newItemPosition)ObjectgetChangePayload(int oldItemPosition, int newItemPosition)-
-
Method Detail
-
getOldListSize
int getOldListSize()
-
getNewListSize
int getNewListSize()
-
areItemsTheSame
boolean areItemsTheSame(int oldItemPosition, int newItemPosition)
-
areContentsTheSame
boolean areContentsTheSame(int oldItemPosition, int newItemPosition)
-
getChangePayload
@Nullable() Object getChangePayload(int oldItemPosition, int newItemPosition)
-
-
-
-