Class DefaultSnapshotDiffCallback<T>


  • public class DefaultSnapshotDiffCallback<T>
    extends androidx.recyclerview.widget.DiffUtil.ItemCallback<com.google.firebase.firestore.DocumentSnapshot>
    Default diff callback implementation for Firestore snapshots.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean areContentsTheSame​(com.google.firebase.firestore.DocumentSnapshot oldItem, com.google.firebase.firestore.DocumentSnapshot newItem)  
      boolean areItemsTheSame​(com.google.firebase.firestore.DocumentSnapshot oldItem, com.google.firebase.firestore.DocumentSnapshot newItem)  
      • Methods inherited from class androidx.recyclerview.widget.DiffUtil.ItemCallback

        getChangePayload
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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:
        areItemsTheSame in class androidx.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:
        areContentsTheSame in class androidx.recyclerview.widget.DiffUtil.ItemCallback<com.google.firebase.firestore.DocumentSnapshot>