Skip to content

Commit 39386fe

Browse files
committed
Make wording on ClientWriteModel methods consistent with that on ClientWriteModel subtypes
JAVA-5527
1 parent fdb90d2 commit 39386fe

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

driver-core/src/main/com/mongodb/client/model/bulk/ClientWriteModel.java

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ static <TDocument> ClientInsertOneModel insertOne(final TDocument document) {
5353
}
5454

5555
/**
56-
* Creates a model for updating at most one document that matches the {@code filter}.
56+
* Creates a model for updating at most one document matching the {@code filter}.
5757
* This method is functionally equivalent to {@link #updateOne(Bson, Bson, ClientUpdateOptions)}
5858
* with the {@linkplain ClientUpdateOptions#clientUpdateOptions() default options}.
5959
*
@@ -70,7 +70,7 @@ static ClientUpdateOneModel updateOne(final Bson filter, final Bson update) {
7070
}
7171

7272
/**
73-
* Creates a model for updating at most one document that matches the {@code filter}.
73+
* Creates a model for updating at most one document matching the {@code filter}.
7474
*
7575
* @param filter The filter.
7676
* @param update The update.
@@ -87,7 +87,7 @@ static ClientUpdateOneModel updateOne(final Bson filter, final Bson update, fina
8787
}
8888

8989
/**
90-
* Creates a model for updating at most one document that matches the {@code filter}.
90+
* Creates a model for updating at most one document matching the {@code filter}.
9191
* This method is functionally equivalent to {@link #updateOne(Bson, Iterable, ClientUpdateOptions)}
9292
* with the {@linkplain ClientUpdateOptions#clientUpdateOptions() default options}.
9393
*
@@ -104,7 +104,7 @@ static ClientUpdateOneModel updateOne(final Bson filter, final Iterable<? extend
104104
}
105105

106106
/**
107-
* Creates a model for updating at most one document that matches the {@code filter}.
107+
* Creates a model for updating at most one document matching the {@code filter}.
108108
*
109109
* @param filter The filter.
110110
* @param updatePipeline The update pipeline.
@@ -121,7 +121,7 @@ static ClientUpdateOneModel updateOne(final Bson filter, final Iterable<? extend
121121
}
122122

123123
/**
124-
* Creates a model for updating all documents that match the {@code filter}.
124+
* Creates a model for updating all documents matching the {@code filter}.
125125
* This method is functionally equivalent to {@link #updateMany(Bson, Bson, ClientUpdateOptions)}
126126
* with the {@linkplain ClientUpdateOptions#clientUpdateOptions() default}.
127127
*
@@ -138,7 +138,7 @@ static ClientUpdateManyModel updateMany(final Bson filter, final Bson update) {
138138
}
139139

140140
/**
141-
* Creates a model for updating all documents that match the {@code filter}.
141+
* Creates a model for updating all documents matching the {@code filter}.
142142
*
143143
* @param filter The filter.
144144
* @param update The update.
@@ -155,7 +155,7 @@ static ClientUpdateManyModel updateMany(final Bson filter, final Bson update, fi
155155
}
156156

157157
/**
158-
* Creates a model for updating all documents that match the {@code filter}.
158+
* Creates a model for updating all documents matching the {@code filter}.
159159
* This method is functionally equivalent to {@link #updateMany(Bson, Iterable, ClientUpdateOptions)}
160160
* with the {@linkplain ClientUpdateOptions#clientUpdateOptions() default options}.
161161
*
@@ -172,7 +172,7 @@ static ClientUpdateManyModel updateMany(final Bson filter, final Iterable<? exte
172172
}
173173

174174
/**
175-
* Creates a model for updating all documents that match the {@code filter}.
175+
* Creates a model for updating all documents matching the {@code filter}.
176176
*
177177
* @param filter The filter.
178178
* @param updatePipeline The update pipeline.
@@ -189,7 +189,7 @@ static ClientUpdateManyModel updateMany(final Bson filter, final Iterable<? exte
189189
}
190190

191191
/**
192-
* Creates a model for replacing at most one document that matches the {@code filter}.
192+
* Creates a model for replacing at most one document matching the {@code filter}.
193193
* This method is functionally equivalent to {@link #replaceOne(Bson, Object, ClientReplaceOptions)}
194194
* with the {@linkplain ClientReplaceOptions#clientReplaceOptions() default options}.
195195
*
@@ -207,7 +207,7 @@ static <TDocument> ClientReplaceOneModel replaceOne(final Bson filter, final TDo
207207
}
208208

209209
/**
210-
* Creates a model for replacing at most one document that matches the {@code filter}.
210+
* Creates a model for replacing at most one document matching the {@code filter}.
211211
*
212212
* @param filter The filter.
213213
* @param replacement The replacement.
@@ -225,7 +225,7 @@ static <TDocument> ClientReplaceOneModel replaceOne(final Bson filter, final TDo
225225
}
226226

227227
/**
228-
* Creates a model for removing at most one document that match the {@code filter}.
228+
* Creates a model for removing at most one document matching the {@code filter}.
229229
* This method is functionally equivalent to {@link #deleteOne(Bson, ClientDeleteOptions)}
230230
* with the {@linkplain ClientDeleteOptions#clientDeleteOptions() default options}.
231231
*
@@ -239,7 +239,7 @@ static ClientDeleteOneModel deleteOne(final Bson filter) {
239239
}
240240

241241
/**
242-
* Creates a model for removing at most one document that match the {@code filter}.
242+
* Creates a model for removing at most one document matching the {@code filter}.
243243
*
244244
* @param filter The filter.
245245
* @param options The options.
@@ -253,7 +253,7 @@ static ClientDeleteOneModel deleteOne(final Bson filter, final ClientDeleteOptio
253253
}
254254

255255
/**
256-
* Creates a model for removing all documents that match the {@code filter}.
256+
* Creates a model for removing all documents matching the {@code filter}.
257257
* This method is functionally equivalent to {@link #deleteMany(Bson, ClientDeleteOptions)}
258258
* with the {@linkplain ClientDeleteOptions#clientDeleteOptions() default options}.
259259
*
@@ -267,7 +267,7 @@ static ClientDeleteManyModel deleteMany(final Bson filter) {
267267
}
268268

269269
/**
270-
* Creates a model for removing all documents that match the {@code filter}.
270+
* Creates a model for removing all documents matching the {@code filter}.
271271
*
272272
* @param filter The filter.
273273
* @param options The options.

0 commit comments

Comments
 (0)