Package com.firebase.ui.firestore.paging
Class DefaultSnapshotDiffCallback<T>
- java.lang.Object
-
- androidx.recyclerview.widget.DiffUtil.ItemCallback<com.google.firebase.firestore.DocumentSnapshot>
-
- com.firebase.ui.firestore.paging.DefaultSnapshotDiffCallback<T>
-
public class DefaultSnapshotDiffCallback<T> extends androidx.recyclerview.widget.DiffUtil.ItemCallback<com.google.firebase.firestore.DocumentSnapshot>Default diff callback implementation for Firestore snapshots.
-
-
Constructor Summary
Constructors Constructor Description DefaultSnapshotDiffCallback(SnapshotParser<T> parser)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanareContentsTheSame(com.google.firebase.firestore.DocumentSnapshot oldItem, com.google.firebase.firestore.DocumentSnapshot newItem)booleanareItemsTheSame(com.google.firebase.firestore.DocumentSnapshot oldItem, com.google.firebase.firestore.DocumentSnapshot newItem)
-
-
-
Constructor Detail
-
DefaultSnapshotDiffCallback
public DefaultSnapshotDiffCallback(@NonNull SnapshotParser<T> parser)
-
-
Method Detail
-
areItemsTheSame
public boolean areItemsTheSame(@NonNull com.google.firebase.firestore.DocumentSnapshot oldItem, @NonNull com.google.firebase.firestore.DocumentSnapshot newItem)- Specified by:
areItemsTheSamein classandroidx.recyclerview.widget.DiffUtil.ItemCallback<com.google.firebase.firestore.DocumentSnapshot>
-
areContentsTheSame
public boolean areContentsTheSame(@NonNull com.google.firebase.firestore.DocumentSnapshot oldItem, @NonNull com.google.firebase.firestore.DocumentSnapshot newItem)- Specified by:
areContentsTheSamein classandroidx.recyclerview.widget.DiffUtil.ItemCallback<com.google.firebase.firestore.DocumentSnapshot>
-
-