@@ -43,7 +43,7 @@ public static AccumulatorOperatorFactory valueOf(String fieldReference) {
43
43
/**
44
44
* Take the numeric value referenced resulting from given {@link AggregationExpression}.
45
45
*
46
- * @param fieldReference must not be {@literal null}.
46
+ * @param expression must not be {@literal null}.
47
47
* @return
48
48
*/
49
49
public static AccumulatorOperatorFactory valueOf (AggregationExpression expression ) {
@@ -71,7 +71,7 @@ public AccumulatorOperatorFactory(String fieldReference) {
71
71
}
72
72
73
73
/**
74
- * Creates new {@link ArrayOperatorFactory } for given {@link AggregationExpression}.
74
+ * Creates new {@link AccumulatorOperatorFactory } for given {@link AggregationExpression}.
75
75
*
76
76
* @param expression must not be {@literal null}.
77
77
*/
@@ -83,7 +83,7 @@ public AccumulatorOperatorFactory(AggregationExpression expression) {
83
83
}
84
84
85
85
/**
86
- * Creates new {@link AggregationExpressions } that takes the associated numeric value expression and calculates and
86
+ * Creates new {@link AggregationExpression } that takes the associated numeric value expression and calculates and
87
87
* returns the sum.
88
88
*
89
89
* @return
@@ -93,7 +93,7 @@ public Sum sum() {
93
93
}
94
94
95
95
/**
96
- * Creates new {@link AggregationExpressions } that takes the associated numeric value expression and returns the
96
+ * Creates new {@link AggregationExpression } that takes the associated numeric value expression and returns the
97
97
* average value.
98
98
*
99
99
* @return
@@ -103,7 +103,7 @@ public Avg avg() {
103
103
}
104
104
105
105
/**
106
- * Creates new {@link AggregationExpressions } that takes the associated numeric value expression and returns the
106
+ * Creates new {@link AggregationExpression } that takes the associated numeric value expression and returns the
107
107
* maximum value.
108
108
*
109
109
* @return
@@ -113,7 +113,7 @@ public Max max() {
113
113
}
114
114
115
115
/**
116
- * Creates new {@link AggregationExpressions } that takes the associated numeric value expression and returns the
116
+ * Creates new {@link AggregationExpression } that takes the associated numeric value expression and returns the
117
117
* minimum value.
118
118
*
119
119
* @return
@@ -123,7 +123,7 @@ public Min min() {
123
123
}
124
124
125
125
/**
126
- * Creates new {@link AggregationExpressions } that takes the associated numeric value expression and calculates the
126
+ * Creates new {@link AggregationExpression } that takes the associated numeric value expression and calculates the
127
127
* population standard deviation of the input values.
128
128
*
129
129
* @return
@@ -133,7 +133,7 @@ public StdDevPop stdDevPop() {
133
133
}
134
134
135
135
/**
136
- * Creates new {@link AggregationExpressions } that takes the associated numeric value expression and calculates the
136
+ * Creates new {@link AggregationExpression } that takes the associated numeric value expression and calculates the
137
137
* sample standard deviation of the input values.
138
138
*
139
139
* @return
@@ -214,9 +214,10 @@ public Sum and(AggregationExpression expression) {
214
214
}
215
215
216
216
/* (non-Javadoc)
217
- * @see org.springframework.data.mongodb.core.aggregation.AggregationExpressions .AbstractAggregationExpression#toDocument(java.lang.Object, org.springframework.data.mongodb.core.aggregation.AggregationOperationContext)
217
+ * @see org.springframework.data.mongodb.core.aggregation.AccumulatorOperators .AbstractAggregationExpression#toDocument(java.lang.Object, org.springframework.data.mongodb.core.aggregation.AggregationOperationContext)
218
218
*/
219
219
@ Override
220
+ @ SuppressWarnings ("unchecked" )
220
221
public Document toDocument (Object value , AggregationOperationContext context ) {
221
222
222
223
if (value instanceof List ) {
@@ -296,9 +297,10 @@ public Avg and(AggregationExpression expression) {
296
297
}
297
298
298
299
/* (non-Javadoc)
299
- * @see org.springframework.data.mongodb.core.aggregation.AggregationExpressions .AbstractAggregationExpression#toDocument(java.lang.Object, org.springframework.data.mongodb.core.aggregation.AggregationOperationContext)
300
+ * @see org.springframework.data.mongodb.core.aggregation.AccumulatorOperators .AbstractAggregationExpression#toDocument(java.lang.Object, org.springframework.data.mongodb.core.aggregation.AggregationOperationContext)
300
301
*/
301
302
@ Override
303
+ @ SuppressWarnings ("unchecked" )
302
304
public Document toDocument (Object value , AggregationOperationContext context ) {
303
305
304
306
if (value instanceof List ) {
@@ -378,9 +380,10 @@ public Max and(AggregationExpression expression) {
378
380
}
379
381
380
382
/* (non-Javadoc)
381
- * @see org.springframework.data.mongodb.core.aggregation.AggregationExpressions .AbstractAggregationExpression#toDocument(java.lang.Object, org.springframework.data.mongodb.core.aggregation.AggregationOperationContext)
383
+ * @see org.springframework.data.mongodb.core.aggregation.AccumulatorOperators .AbstractAggregationExpression#toDocument(java.lang.Object, org.springframework.data.mongodb.core.aggregation.AggregationOperationContext)
382
384
*/
383
385
@ Override
386
+ @ SuppressWarnings ("unchecked" )
384
387
public Document toDocument (Object value , AggregationOperationContext context ) {
385
388
386
389
if (value instanceof List ) {
@@ -460,9 +463,10 @@ public Min and(AggregationExpression expression) {
460
463
}
461
464
462
465
/* (non-Javadoc)
463
- * @see org.springframework.data.mongodb.core.aggregation.AggregationExpressions .AbstractAggregationExpression#toDocument(java.lang.Object, org.springframework.data.mongodb.core.aggregation.AggregationOperationContext)
466
+ * @see org.springframework.data.mongodb.core.aggregation.AccumulatorOperators .AbstractAggregationExpression#toDocument(java.lang.Object, org.springframework.data.mongodb.core.aggregation.AggregationOperationContext)
464
467
*/
465
468
@ Override
469
+ @ SuppressWarnings ("unchecked" )
466
470
public Document toDocument (Object value , AggregationOperationContext context ) {
467
471
468
472
if (value instanceof List ) {
@@ -542,9 +546,10 @@ public StdDevPop and(AggregationExpression expression) {
542
546
}
543
547
544
548
/* (non-Javadoc)
545
- * @see org.springframework.data.mongodb.core.aggregation.AggregationExpressions .AbstractAggregationExpression#toDocument(java.lang.Object, org.springframework.data.mongodb.core.aggregation.AggregationOperationContext)
549
+ * @see org.springframework.data.mongodb.core.aggregation.AccumulatorOperators .AbstractAggregationExpression#toDocument(java.lang.Object, org.springframework.data.mongodb.core.aggregation.AggregationOperationContext)
546
550
*/
547
551
@ Override
552
+ @ SuppressWarnings ("unchecked" )
548
553
public Document toDocument (Object value , AggregationOperationContext context ) {
549
554
550
555
if (value instanceof List ) {
@@ -624,9 +629,10 @@ public StdDevSamp and(AggregationExpression expression) {
624
629
}
625
630
626
631
/* (non-Javadoc)
627
- * @see org.springframework.data.mongodb.core.aggregation.AggregationExpressions .AbstractAggregationExpression#toDocument(java.lang.Object, org.springframework.data.mongodb.core.aggregation.AggregationOperationContext)
632
+ * @see org.springframework.data.mongodb.core.aggregation.AccumulatorOperators .AbstractAggregationExpression#toDocument(java.lang.Object, org.springframework.data.mongodb.core.aggregation.AggregationOperationContext)
628
633
*/
629
634
@ Override
635
+ @ SuppressWarnings ("unchecked" )
630
636
public Document toDocument (Object value , AggregationOperationContext context ) {
631
637
632
638
if (value instanceof List ) {
0 commit comments