Skip to content

Commit ae0368f

Browse files
committed
GetIndexesOperation Javadoc improvements
1 parent 9eff876 commit ae0368f

1 file changed

Lines changed: 10 additions & 1 deletion

File tree

driver/src/main/org/mongodb/operation/GetIndexesOperation.java

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,23 @@
3333
import static org.mongodb.operation.QueryOperationHelper.queryResultToListAsync;
3434

3535
/**
36-
* An operation that gets the indexes that have been created on a collection.
36+
* An operation that gets the indexes that have been created on a collection. For flexibility,
37+
* the type of each document returned is generic.
38+
*
39+
* @param <T> the document type for each index
3740
*
3841
* @since 3.0
3942
*/
4043
public class GetIndexesOperation<T> implements AsyncReadOperation<List<T>>, ReadOperation<List<T>> {
4144
private final MongoNamespace collectionNamespace;
4245
private final Decoder<T> decoder;
4346

47+
/**
48+
* Construct a new instance
49+
*
50+
* @param collectionNamespace the namespace of the collection to get the indexes for
51+
* @param decoder the decoder for the indexes
52+
*/
4453
public GetIndexesOperation(final MongoNamespace collectionNamespace, final Decoder<T> decoder) {
4554
this.collectionNamespace = notNull("collectionNamespace", collectionNamespace);
4655
this.decoder = decoder;

0 commit comments

Comments
 (0)