public final class QuerySnapshot extends Object implements Iterable<DocumentSnapshot>
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
List<DocumentSnapshot> |
getDocuments()
Returns the documents in this QuerySnapshot as a List in order of the query.
|
Query |
getQuery()
Returns the query for the snapshot.
|
org.threeten.bp.Instant |
getReadTime()
Returns the time at which this snapshot was read.
|
int |
hashCode() |
boolean |
isEmpty()
Returns true if there are no documents in the QuerySnapshot.
|
Iterator<DocumentSnapshot> |
iterator() |
int |
size()
Returns the number of documents in the QuerySnapshot.
|
<T> List<T> |
toObjects(Class<T> clazz)
Returns the contents of the documents in the QuerySnapshot, converted to the provided class, as
a list.
|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitforEach, spliterator@Nonnull public Query getQuery()
@Nonnull public org.threeten.bp.Instant getReadTime()
@Nonnull public List<DocumentSnapshot> getDocuments()
public boolean isEmpty()
public int size()
@Nonnull public Iterator<DocumentSnapshot> iterator()
iterator in interface Iterable<DocumentSnapshot>@Nonnull public <T> List<T> toObjects(@Nonnull Class<T> clazz)
clazz - The POJO type used to convert the documents in the list.Copyright © 2017 Google. All rights reserved.