Interface BaseSnapshotParser<S,​T>

  • Type Parameters:
    S - snapshot type.
    T - parsed object type.
    All Known Implementing Classes:
    BaseCachingSnapshotParser

    public interface BaseSnapshotParser<S,​T>
    Common interface for snapshot parsers.
    • Method Detail

      • 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
        Returns:
        the model extracted from the DataSnapshot