Package 

Class BaseCachingSnapshotParser

    • Method Summary

      Modifier and Type Method Description
      abstract String getId(@NonNull() S snapshot) Get a unique identifier for a snapshot, should not depend on snapshot content.
      T parseSnapshot(@NonNull() S snapshot) This method parses the Snapshot into the requested type.
      void clear() Clear all data in the cache.
      void invalidate(@NonNull() S snapshot) Invalidate the cache for a certain document.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • getId

        @NonNull() abstract String getId(@NonNull() S snapshot)

        Get a unique identifier for a snapshot, should not depend on snapshot content.

      • parseSnapshot

        @NonNull() T parseSnapshot(@NonNull() S snapshot)

        This method parses the Snapshot into the requested type.

        Parameters:
        snapshot - the Snapshot to extract the model from
      • clear

         void clear()

        Clear all data in the cache.

      • invalidate

         void invalidate(@NonNull() S snapshot)

        Invalidate the cache for a certain document.