Package com.firebase.ui.database.paging
Class DefaultSnapshotDiffCallback<T>
- java.lang.Object
-
- androidx.recyclerview.widget.DiffUtil.ItemCallback<com.google.firebase.database.DataSnapshot>
-
- com.firebase.ui.database.paging.DefaultSnapshotDiffCallback<T>
-
public class DefaultSnapshotDiffCallback<T> extends androidx.recyclerview.widget.DiffUtil.ItemCallback<com.google.firebase.database.DataSnapshot>Default diff callback implementation for Firebase Data 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.database.DataSnapshot oldItem, com.google.firebase.database.DataSnapshot newItem)booleanareItemsTheSame(com.google.firebase.database.DataSnapshot oldItem, com.google.firebase.database.DataSnapshot newItem)
-
-
-
Constructor Detail
-
DefaultSnapshotDiffCallback
public DefaultSnapshotDiffCallback(@NonNull SnapshotParser<T> parser)
-
-
Method Detail
-
areItemsTheSame
public boolean areItemsTheSame(@NonNull com.google.firebase.database.DataSnapshot oldItem, @NonNull com.google.firebase.database.DataSnapshot newItem)- Specified by:
areItemsTheSamein classandroidx.recyclerview.widget.DiffUtil.ItemCallback<com.google.firebase.database.DataSnapshot>
-
areContentsTheSame
public boolean areContentsTheSame(@NonNull com.google.firebase.database.DataSnapshot oldItem, @NonNull com.google.firebase.database.DataSnapshot newItem)- Specified by:
areContentsTheSamein classandroidx.recyclerview.widget.DiffUtil.ItemCallback<com.google.firebase.database.DataSnapshot>
-
-