Class ClassSnapshotParser<T>

  • All Implemented Interfaces:
    com.firebase.ui.common.BaseSnapshotParser<com.google.firebase.firestore.DocumentSnapshot,​T>, SnapshotParser<T>

    public class ClassSnapshotParser<T>
    extends java.lang.Object
    implements SnapshotParser<T>
    An implementation of SnapshotParser that converts DocumentSnapshot to a class using DocumentSnapshot.toObject(Class).
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassSnapshotParser​(java.lang.Class<T> modelClass)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      T parseSnapshot​(com.google.firebase.firestore.DocumentSnapshot snapshot)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ClassSnapshotParser

        public ClassSnapshotParser​(@NonNull
                                   java.lang.Class<T> modelClass)
    • Method Detail

      • parseSnapshot

        @NonNull
        public T parseSnapshot​(@NonNull
                               com.google.firebase.firestore.DocumentSnapshot snapshot)
        Specified by:
        parseSnapshot in interface com.firebase.ui.common.BaseSnapshotParser<com.google.firebase.firestore.DocumentSnapshot,​T>