4242
4343/**
4444 * The MongoCollection interface.
45- *
45+ * <p/>
4646 * <p>Note: Additions to this interface will not be considered to break binary compatibility.</p>
4747 *
4848 * @param <TDocument> The type that this collection will encode documents from and decode documents to.
@@ -89,11 +89,11 @@ public interface MongoCollection<TDocument> {
8989 /**
9090 * Create a new MongoCollection instance with a different default class to cast any documents returned from the database into..
9191 *
92- * @param clazz the default class to cast any documents returned from the database into.
93- * @param <NewTDocument> The type that the new collection will encode documents from and decode documents to
92+ * @param newDocumentClass the default class to cast any documents returned from the database into.
93+ * @param <NewTDocument> the type that the new collection will encode documents from and decode documents to
9494 * @return a new MongoCollection instance with the different default class
9595 */
96- <NewTDocument > MongoCollection <NewTDocument > withDocumentClass (Class <NewTDocument > clazz );
96+ <NewTDocument > MongoCollection <NewTDocument > withDocumentClass (Class <NewTDocument > newDocumentClass );
9797
9898 /**
9999 * Create a new MongoCollection instance with a different codec registry.
@@ -146,13 +146,13 @@ public interface MongoCollection<TDocument> {
146146 /**
147147 * Gets the distinct values of the specified field name.
148148 *
149- * @param fieldName the field name
150- * @param clazz the default class to cast any distinct items into.
151- * @param <TResult> the target type of the iterable.
149+ * @param fieldName the field name
150+ * @param resultClass the default class to cast any distinct items into.
151+ * @param <TResult> the target type of the iterable.
152152 * @return an iterable of distinct values
153153 * @mongodb.driver.manual reference/command/distinct/ Distinct
154154 */
155- <TResult > DistinctIterable <TResult > distinct (String fieldName , Class <TResult > clazz );
155+ <TResult > DistinctIterable <TResult > distinct (String fieldName , Class <TResult > resultClass );
156156
157157 /**
158158 * Finds all documents in the collection.
@@ -165,12 +165,12 @@ public interface MongoCollection<TDocument> {
165165 /**
166166 * Finds all documents in the collection.
167167 *
168- * @param clazz the class to decode each document into
168+ * @param resultClass the class to decode each document into
169169 * @param <TResult> the target document type of the iterable.
170170 * @return the find iterable interface
171171 * @mongodb.driver.manual tutorial/query-documents/ Find
172172 */
173- <TResult > FindIterable <TResult > find (Class <TResult > clazz );
173+ <TResult > FindIterable <TResult > find (Class <TResult > resultClass );
174174
175175 /**
176176 * Finds all documents in the collection.
@@ -184,13 +184,13 @@ public interface MongoCollection<TDocument> {
184184 /**
185185 * Finds all documents in the collection.
186186 *
187- * @param filter the query filter
188- * @param clazz the class to decode each document into
189- * @param <TResult> the target document type of the iterable.
187+ * @param filter the query filter
188+ * @param resultClass the class to decode each document into
189+ * @param <TResult> the target document type of the iterable.
190190 * @return the find iterable interface
191191 * @mongodb.driver.manual tutorial/query-documents/ Find
192192 */
193- <TResult > FindIterable <TResult > find (Bson filter , Class <TResult > clazz );
193+ <TResult > FindIterable <TResult > find (Bson filter , Class <TResult > resultClass );
194194
195195 /**
196196 * Aggregates documents according to the specified aggregation pipeline. If the pipeline ends with a $out stage, the returned
@@ -208,13 +208,13 @@ public interface MongoCollection<TDocument> {
208208 * iterable will be a query of the collection that the aggregation was written to. Note that in this case the pipeline will be
209209 * executed even if the iterable is never iterated.
210210 *
211- * @param pipeline the aggregate pipeline
212- * @param clazz the class to decode each document into
213- * @param <TResult> the target document type of the iterable.
211+ * @param pipeline the aggregate pipeline
212+ * @param resultClass the class to decode each document into
213+ * @param <TResult> the target document type of the iterable.
214214 * @return an iterable containing the result of the aggregation operation
215215 * @mongodb.driver.manual aggregation/ Aggregation
216216 */
217- <TResult > AggregateIterable <TResult > aggregate (List <? extends Bson > pipeline , Class <TResult > clazz );
217+ <TResult > AggregateIterable <TResult > aggregate (List <? extends Bson > pipeline , Class <TResult > resultClass );
218218
219219 /**
220220 * Aggregates documents according to the specified map-reduce function.
@@ -231,12 +231,12 @@ public interface MongoCollection<TDocument> {
231231 *
232232 * @param mapFunction A JavaScript function that associates or "maps" a value with a key and emits the key and value pair.
233233 * @param reduceFunction A JavaScript function that "reduces" to a single object all the values associated with a particular key.
234- * @param clazz the class to decode each resulting document into.
235- * @param <TResult> the target document type of the iterable.
234+ * @param resultClass the class to decode each resulting document into.
235+ * @param <TResult> the target document type of the iterable.
236236 * @return an iterable containing the result of the map-reduce operation
237237 * @mongodb.driver.manual reference/command/mapReduce/ map-reduce
238238 */
239- <TResult > MapReduceIterable <TResult > mapReduce (String mapFunction , String reduceFunction , Class <TResult > clazz );
239+ <TResult > MapReduceIterable <TResult > mapReduce (String mapFunction , String reduceFunction , Class <TResult > resultClass );
240240
241241 /**
242242 * Executes a mix of inserts, updates, replaces, and deletes.
@@ -500,12 +500,12 @@ void bulkWrite(List<? extends WriteModel<? extends TDocument>> requests, BulkWri
500500 /**
501501 * Get all the indexes in this collection.
502502 *
503- * @param clazz the class to decode each document into
504- * @param <TResult> the target document type of the iterable.
503+ * @param resultClass the class to decode each document into
504+ * @param <TResult> the target document type of the iterable.
505505 * @return the list indexes iterable interface
506506 * @mongodb.driver.manual reference/command/listIndexes/ listIndexes
507507 */
508- <TResult > ListIndexesIterable <TResult > listIndexes (Class <TResult > clazz );
508+ <TResult > ListIndexesIterable <TResult > listIndexes (Class <TResult > resultClass );
509509
510510 /**
511511 * Drops the given index.
0 commit comments