public interface SnapshotRepository<T extends DocumentSnapshot>
extends java.lang.Iterable<T>
DocumentSnapshot
objects from a repository. The returned objects are are sorted
by DocumentSnapshot.getDocumentId()
values.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Returns the name for this
SnapshotRepository . |
java.util.Iterator<T> |
iterator()
Returns an
Iterator to access the collection
of DocumentSnapshot objects from the repository. |
java.lang.String getName()
SnapshotRepository
. The returned
name must be unique for the containing Connector.java.util.Iterator<T> iterator() throws SnapshotRepositoryRuntimeException
Iterator
to access the collection
of DocumentSnapshot
objects from the repository.
The returned Iterator
must return DocumentSnapshot
objects in DocumentSnapshot.getDocumentId()
order.
The returned Iterator
may throw the unchecked
SnapshotRepositoryRuntimeException
if
Iterator.hasNext()
or Iterator.next()
fails. The returned
Iterator
need not implement Iterator.remove()
.
iterator
in interface java.lang.Iterable<T extends DocumentSnapshot>
SnapshotRepositoryRuntimeException