@@ -44,8 +44,7 @@ fun <T : Any> MongoOperations.getCollectionName(entityClass: KClass<T>): String
44
44
getCollectionName(entityClass.java)
45
45
46
46
/* *
47
- * Extension for [MongoOperations.getCollectionName] avoiding requiring the type parameter
48
- * thanks to Kotlin reified type parameters.
47
+ * Extension for [MongoOperations.getCollectionName] leveraging reified type parameters.
49
48
*
50
49
* @author Sebastien Deleuze
51
50
* @since 2.0
@@ -54,8 +53,7 @@ inline fun <reified T : Any> MongoOperations.getCollectionName(): String =
54
53
getCollectionName(T ::class .java)
55
54
56
55
/* *
57
- * Extension for [MongoOperations.execute] avoiding requiring the type parameter
58
- * thanks to Kotlin reified type parameters.
56
+ * Extension for [MongoOperations.execute] leveraging reified type parameters.
59
57
*
60
58
* @author Sebastien Deleuze
61
59
* @since 2.0
@@ -64,8 +62,7 @@ inline fun <reified T : Any> MongoOperations.execute(action: CollectionCallback<
64
62
execute(T ::class .java, action)
65
63
66
64
/* *
67
- * Extension for [MongoOperations.stream] avoiding requiring the type parameter
68
- * thanks to Kotlin reified type parameters.
65
+ * Extension for [MongoOperations.stream] leveraging reified type parameters.
69
66
*
70
67
* @author Sebastien Deleuze
71
68
* @since 2.0
@@ -74,8 +71,7 @@ inline fun <reified T : Any> MongoOperations.stream(query: Query): CloseableIter
74
71
stream(query, T ::class .java)
75
72
76
73
/* *
77
- * Extension for [MongoOperations.stream] avoiding requiring the type parameter
78
- * thanks to Kotlin reified type parameters.
74
+ * Extension for [MongoOperations.stream] leveraging reified type parameters.
79
75
*
80
76
* @author Sebastien Deleuze
81
77
* @since 2.0
@@ -95,8 +91,7 @@ fun <T : Any> MongoOperations.createCollection(entityClass: KClass<T>, collectio
95
91
else createCollection(entityClass.java)
96
92
97
93
/* *
98
- * Extension for [MongoOperations.createCollection] avoiding requiring the type parameter
99
- * thanks to Kotlin reified type parameters.
94
+ * Extension for [MongoOperations.createCollection] leveraging reified type parameters.
100
95
*
101
96
* @author Sebastien Deleuze
102
97
* @since 2.0
@@ -116,8 +111,7 @@ fun <T : Any> MongoOperations.collectionExists(entityClass: KClass<T>): Boolean
116
111
collectionExists(entityClass.java)
117
112
118
113
/* *
119
- * Extension for [MongoOperations.collectionExists] avoiding requiring the type parameter
120
- * thanks to Kotlin reified type parameters.
114
+ * Extension for [MongoOperations.collectionExists] leveraging reified type parameters.
121
115
*
122
116
* @author Sebastien Deleuze
123
117
* @since 2.0
@@ -136,8 +130,7 @@ fun <T : Any> MongoOperations.dropCollection(entityClass: KClass<T>) {
136
130
}
137
131
138
132
/* *
139
- * Extension for [MongoOperations.dropCollection] avoiding requiring the type parameter
140
- * thanks to Kotlin reified type parameters.
133
+ * Extension for [MongoOperations.dropCollection] leveraging reified type parameters.
141
134
*
142
135
* @author Sebastien Deleuze
143
136
* @since 2.0
@@ -156,8 +149,7 @@ fun <T : Any> MongoOperations.indexOps(entityClass: KClass<T>): IndexOperations
156
149
indexOps(entityClass.java)
157
150
158
151
/* *
159
- * Extension for [MongoOperations.indexOps] avoiding requiring the type parameter
160
- * thanks to Kotlin reified type parameters.
152
+ * Extension for [MongoOperations.indexOps] leveraging reified type parameters.
161
153
*
162
154
* @author Sebastien Deleuze
163
155
* @since 2.0
@@ -176,7 +168,7 @@ fun <T : Any> MongoOperations.bulkOps(bulkMode: BulkMode, entityClass: KClass<T>
176
168
else bulkOps(bulkMode, entityClass.java)
177
169
178
170
/* *
179
- * Extension for [MongoOperations.bulkOps] providing a [KClass] based variant .
171
+ * Extension for [MongoOperations.bulkOps] leveraging reified type parameters .
180
172
*
181
173
* @author Sebastien Deleuze
182
174
* @since 2.0
@@ -187,8 +179,7 @@ inline fun <reified T : Any> MongoOperations.bulkOps(bulkMode: BulkMode, collect
187
179
else bulkOps(bulkMode, T ::class .java)
188
180
189
181
/* *
190
- * Extension for [MongoOperations.findAll] avoiding requiring the type parameter
191
- * thanks to Kotlin reified type parameters
182
+ * Extension for [MongoOperations.findAll] leveraging reified type parameters.
192
183
*
193
184
* @author Sebastien Deleuze
194
185
* @since 2.0
@@ -197,8 +188,7 @@ inline fun <reified T : Any> MongoOperations.findAll(collectionName: String? = n
197
188
if (collectionName != null ) findAll(T ::class .java, collectionName) else findAll(T ::class .java)
198
189
199
190
/* *
200
- * Extension for [MongoOperations.group] avoiding requiring the type parameter
201
- * thanks to Kotlin reified type parameters
191
+ * Extension for [MongoOperations.group] leveraging reified type parameters.
202
192
*
203
193
* @author Sebastien Deleuze
204
194
* @since 2.0
@@ -207,8 +197,7 @@ inline fun <reified T : Any> MongoOperations.group(inputCollectionName: String,
207
197
group(inputCollectionName, groupBy, T ::class .java)
208
198
209
199
/* *
210
- * Extension for [MongoOperations.group] avoiding requiring the type parameter
211
- * thanks to Kotlin reified type parameters
200
+ * Extension for [MongoOperations.group] leveraging reified type parameters.
212
201
*
213
202
* @author Sebastien Deleuze
214
203
* @since 2.0
@@ -217,8 +206,7 @@ inline fun <reified T : Any> MongoOperations.group(criteria: Criteria, inputColl
217
206
group(criteria, inputCollectionName, groupBy, T ::class .java)
218
207
219
208
/* *
220
- * Extension for [MongoOperations.aggregate] avoiding requiring the type parameter
221
- * thanks to Kotlin reified type parameters
209
+ * Extension for [MongoOperations.aggregate] leveraging reified type parameters.
222
210
*
223
211
* @author Sebastien Deleuze
224
212
* @since 2.0
@@ -227,8 +215,7 @@ inline fun <reified O : Any> MongoOperations.aggregate(aggregation: Aggregation,
227
215
aggregate(aggregation, inputType.java, O ::class .java)
228
216
229
217
/* *
230
- * Extension for [MongoOperations.aggregate] avoiding requiring the type parameter
231
- * thanks to Kotlin reified type parameters
218
+ * Extension for [MongoOperations.aggregate] leveraging reified type parameters.
232
219
*
233
220
* @author Sebastien Deleuze
234
221
* @since 2.0
@@ -237,8 +224,7 @@ inline fun <reified O : Any> MongoOperations.aggregate(aggregation: Aggregation,
237
224
aggregate(aggregation, collectionName, O ::class .java)
238
225
239
226
/* *
240
- * Extension for [MongoOperations.aggregateStream] avoiding requiring the type parameter
241
- * thanks to Kotlin reified type parameters
227
+ * Extension for [MongoOperations.aggregateStream] leveraging reified type parameters.
242
228
*
243
229
* @author Sebastien Deleuze
244
230
* @since 2.0
@@ -247,8 +233,7 @@ inline fun <reified O : Any> MongoOperations.aggregateStream(aggregation: Aggreg
247
233
aggregateStream(aggregation, inputType.java, O ::class .java)
248
234
249
235
/* *
250
- * Extension for [MongoOperations.aggregateStream] avoiding requiring the type parameter
251
- * thanks to Kotlin reified type parameters
236
+ * Extension for [MongoOperations.aggregateStream] leveraging reified type parameters.
252
237
*
253
238
* @author Sebastien Deleuze
254
239
* @since 2.0
@@ -257,8 +242,7 @@ inline fun <reified O : Any> MongoOperations.aggregateStream(aggregation: Aggreg
257
242
aggregateStream(aggregation, collectionName, O ::class .java)
258
243
259
244
/* *
260
- * Extension for [MongoOperations.mapReduce] avoiding requiring the type parameter
261
- * thanks to Kotlin reified type parameters
245
+ * Extension for [MongoOperations.mapReduce] leveraging reified type parameters.
262
246
*
263
247
* @author Sebastien Deleuze
264
248
* @since 2.0
@@ -268,8 +252,7 @@ inline fun <reified T : Any> MongoOperations.mapReduce(collectionName: String, m
268
252
else mapReduce(collectionName, mapFunction, reduceFunction, T ::class .java)
269
253
270
254
/* *
271
- * Extension for [MongoOperations.mapReduce] avoiding requiring the type parameter
272
- * thanks to Kotlin reified type parameters
255
+ * Extension for [MongoOperations.mapReduce] leveraging reified type parameters.
273
256
*
274
257
* @author Sebastien Deleuze
275
258
* @since 52.0
@@ -279,8 +262,7 @@ inline fun <reified T : Any> MongoOperations.mapReduce(query: Query, collectionN
279
262
else mapReduce(query, collectionName, mapFunction, reduceFunction, T ::class .java)
280
263
281
264
/* *
282
- * Extension for [MongoOperations.geoNear] avoiding requiring the type parameter
283
- * thanks to Kotlin reified type parameters
265
+ * Extension for [MongoOperations.geoNear] leveraging reified type parameters.
284
266
*
285
267
* @author Sebastien Deleuze
286
268
* @since 2.0
@@ -290,8 +272,7 @@ inline fun <reified T : Any> MongoOperations.geoNear(near: NearQuery, collection
290
272
else geoNear(near, T ::class .java)
291
273
292
274
/* *
293
- * Extension for [MongoOperations.findOne] avoiding requiring the type parameter
294
- * thanks to Kotlin reified type parameters
275
+ * Extension for [MongoOperations.findOne] leveraging reified type parameters.
295
276
*
296
277
* @author Sebastien Deleuze
297
278
* @since 2.0
@@ -300,8 +281,7 @@ inline fun <reified T : Any> MongoOperations.findOne(query: Query, collectionNam
300
281
if (collectionName != null ) findOne(query, T ::class .java, collectionName) else findOne(query, T ::class .java)
301
282
302
283
/* *
303
- * Extension for [MongoOperations.exists] avoiding requiring the type parameter
304
- * thanks to Kotlin reified type parameters
284
+ * Extension for [MongoOperations.exists] providing a [KClass] based variant.
305
285
*
306
286
* @author Sebastien Deleuze
307
287
* @since 2.0
@@ -311,8 +291,7 @@ fun <T : Any> MongoOperations.exists(query: Query, entityClass: KClass<T>, colle
311
291
else exists(query, entityClass.java)
312
292
313
293
/* *
314
- * Extension for [MongoOperations.exists] avoiding requiring the type parameter
315
- * thanks to Kotlin reified type parameters
294
+ * Extension for [MongoOperations.exists] leveraging reified type parameters.
316
295
*
317
296
* @author Sebastien Deleuze
318
297
* @since 2.0
@@ -323,8 +302,7 @@ inline fun <reified T : Any> MongoOperations.exists(query: Query, collectionName
323
302
else exists(query, T ::class .java)
324
303
325
304
/* *
326
- * Extension for [MongoOperations.find] avoiding requiring the type parameter
327
- * thanks to Kotlin reified type parameters
305
+ * Extension for [MongoOperations.find] leveraging reified type parameters.
328
306
*
329
307
* @author Sebastien Deleuze
330
308
* @since 2.0
@@ -334,8 +312,7 @@ inline fun <reified T : Any> MongoOperations.find(query: Query, collectionName:
334
312
else find(query, T ::class .java)
335
313
336
314
/* *
337
- * Extension for [MongoOperations.findById] avoiding requiring the type parameter
338
- * thanks to Kotlin reified type parameters
315
+ * Extension for [MongoOperations.findById] leveraging reified type parameters.
339
316
*
340
317
* @author Sebastien Deleuze
341
318
* @since 2.0
@@ -345,8 +322,7 @@ inline fun <reified T : Any> MongoOperations.findById(id: Any, collectionName: S
345
322
else findById(id, T ::class .java)
346
323
347
324
/* *
348
- * Extension for [MongoOperations.findAndModify] avoiding requiring the type parameter
349
- * thanks to Kotlin reified type parameters
325
+ * Extension for [MongoOperations.findAndModify] leveraging reified type parameters.
350
326
*
351
327
* @author Sebastien Deleuze
352
328
* @since 2.0
@@ -356,8 +332,7 @@ inline fun <reified T : Any> MongoOperations.findAndModify(query: Query, update:
356
332
else findAndModify(query, update, options, T ::class .java)
357
333
358
334
/* *
359
- * Extension for [MongoOperations.findAndRemove] avoiding requiring the type parameter
360
- * thanks to Kotlin reified type parameters
335
+ * Extension for [MongoOperations.findAndRemove] leveraging reified type parameters.
361
336
*
362
337
* @author Sebastien Deleuze
363
338
* @since 2.0
@@ -367,8 +342,7 @@ inline fun <reified T : Any> MongoOperations.findAndRemove(query: Query, collect
367
342
else findAndRemove(query, T ::class .java)
368
343
369
344
/* *
370
- * Extension for [MongoOperations.count] avoiding requiring the type parameter
371
- * thanks to Kotlin reified type parameters
345
+ * Extension for [MongoOperations.count] providing a [KClass] based variant.
372
346
*
373
347
* @author Sebastien Deleuze
374
348
* @since 2.0
@@ -378,8 +352,7 @@ fun <T : Any> MongoOperations.count(query: Query = Query(), entityClass: KClass<
378
352
else count(query, entityClass.java)
379
353
380
354
/* *
381
- * Extension for [MongoOperations.count] avoiding requiring the type parameter
382
- * thanks to Kotlin reified type parameters
355
+ * Extension for [MongoOperations.count] leveraging reified type parameters.
383
356
*
384
357
* @author Sebastien Deleuze
385
358
* @since 2.0
@@ -409,8 +382,7 @@ fun <T : Any> MongoOperations.upsert(query: Query, update: Update, entityClass:
409
382
else upsert(query, update, entityClass.java)
410
383
411
384
/* *
412
- * Extension for [MongoOperations.upsert] avoiding requiring the type parameter
413
- * thanks to Kotlin reified type parameters.
385
+ * Extension for [MongoOperations.upsert] leveraging reified type parameters.
414
386
*
415
387
* @author Sebastien Deleuze
416
388
* @since 2.0
@@ -431,8 +403,7 @@ fun <T : Any> MongoOperations.updateFirst(query: Query, update: Update, entityCl
431
403
else updateFirst(query, update, entityClass.java)
432
404
433
405
/* *
434
- * Extension for [MongoOperations.updateFirst] avoiding requiring the type parameter
435
- * thanks to Kotlin reified type parameters.
406
+ * Extension for [MongoOperations.updateFirst] leveraging reified type parameters.
436
407
*
437
408
* @author Sebastien Deleuze
438
409
* @since 2.0
@@ -454,8 +425,7 @@ fun <T : Any> MongoOperations.updateMulti(query: Query, update: Update, entityCl
454
425
else updateMulti(query, update, entityClass.java)
455
426
456
427
/* *
457
- * Extension for [MongoOperations.updateMulti] avoiding requiring the type parameter
458
- * thanks to Kotlin reified type parameters.
428
+ * Extension for [MongoOperations.updateMulti] leveraging reified type parameters.
459
429
*
460
430
* @author Sebastien Deleuze
461
431
* @since 2.0
@@ -476,8 +446,7 @@ fun <T : Any> MongoOperations.remove(query: Query, entityClass: KClass<T>, colle
476
446
else remove(query, entityClass.java)
477
447
478
448
/* *
479
- * Extension for [MongoOperations.remove] avoiding requiring the type parameter
480
- * thanks to Kotlin reified type parameters.
449
+ * Extension for [MongoOperations.remove] leveraging reified type parameters.
481
450
*
482
451
* @author Sebastien Deleuze
483
452
* @since 2.0
@@ -488,8 +457,7 @@ inline fun <reified T : Any> MongoOperations.remove(query: Query, collectionName
488
457
else remove(query, T ::class .java)
489
458
490
459
/* *
491
- * Extension for [MongoOperations.findAllAndRemove] avoiding requiring the type parameter
492
- * thanks to Kotlin reified type parameters.
460
+ * Extension for [MongoOperations.findAllAndRemove] leveraging reified type parameters.
493
461
*
494
462
* @author Sebastien Deleuze
495
463
* @since 2.0
0 commit comments