@@ -67,7 +67,7 @@ public static final class Builder<T> {
67
67
private DiffUtil .ItemCallback <DocumentSnapshot > mDiffCallback ;
68
68
69
69
/**
70
- * Sets the query using {@link Source#SERVER } and a {@link ClassSnapshotParser} based
70
+ * Sets the query using {@link Source#DEFAULT } and a {@link ClassSnapshotParser} based
71
71
* on the given Class.
72
72
*
73
73
* See {@link #setQuery(Query, Source, PagedList.Config, SnapshotParser)}.
@@ -80,7 +80,7 @@ public Builder<T> setQuery(@NonNull Query query,
80
80
}
81
81
82
82
/**
83
- * Sets the query using {@link Source#SERVER } and a custom {@link SnapshotParser}.
83
+ * Sets the query using {@link Source#DEFAULT } and a custom {@link SnapshotParser}.
84
84
*
85
85
* See {@link #setQuery(Query, Source, PagedList.Config, SnapshotParser)}.
86
86
*/
@@ -92,7 +92,7 @@ public Builder<T> setQuery(@NonNull Query query,
92
92
}
93
93
94
94
/**
95
- * Sets the query using a custom {@link Source} amd a {@link ClassSnapshotParser} based
95
+ * Sets the query using a custom {@link Source} and a {@link ClassSnapshotParser} based
96
96
* on the given class.
97
97
*
98
98
* See {@link #setQuery(Query, Source, PagedList.Config, SnapshotParser)}.
@@ -106,9 +106,10 @@ public Builder<T> setQuery(@NonNull Query query,
106
106
}
107
107
108
108
/**
109
- * Sets the Firestore query to page.
109
+ * Sets the Firestore query to paginate.
110
+ *
110
111
* @param query the Firestore query. This query should only contain where() and
111
- * orderBy() clauses. Any limit() pr pagination clauses will cause errors.
112
+ * orderBy() clauses. Any limit() or pagination clauses will cause errors.
112
113
* @param source the data source to use for query data.
113
114
* @param config paging configuration, passed directly to the support paging library.
114
115
* @param parser the {@link SnapshotParser} to parse {@link DocumentSnapshot} into model
@@ -133,6 +134,7 @@ public Builder<T> setQuery(@NonNull Query query,
133
134
* {@link DocumentSnapshot} objects.
134
135
*
135
136
* The default implementation is {@link DefaultSnapshotDiffCallback}.
137
+ *
136
138
* @return this, for chaining.
137
139
*/
138
140
@ NonNull
@@ -142,9 +144,10 @@ public Builder<T> setDiffCallback(@NonNull DiffUtil.ItemCallback<DocumentSnapsho
142
144
}
143
145
144
146
/**
145
- * Sets an optional {@link LifecycleOwner} to control the lifecycle of the view . Otherwise,
146
- * developer must manually call {@link FirestorePagingAdapter#startListening()}
147
+ * Sets an optional {@link LifecycleOwner} to control the lifecycle of the adapter . Otherwise,
148
+ * you must manually call {@link FirestorePagingAdapter#startListening()}
147
149
* and {@link FirestorePagingAdapter#stopListening()}.
150
+ *
148
151
* @return this, for chaining.
149
152
*/
150
153
@ NonNull
0 commit comments