@@ -1025,22 +1025,23 @@ public static Slice sliceArrayOf(Collection<?> values) {
1025
1025
/**
1026
1026
* Slice the number of elements.
1027
1027
*
1028
- * @param nrElements elements to slice.
1028
+ * @param count number of elements to slice.
1029
1029
* @return new instance of {@link Slice}.
1030
1030
*/
1031
- public Slice itemCount (int nrElements ) {
1032
- return new Slice (append (nrElements ));
1031
+ public Slice itemCount (int count ) {
1032
+ return new Slice (append (count ));
1033
1033
}
1034
1034
1035
1035
/**
1036
1036
* Slice the number of elements.
1037
1037
*
1038
- * @param nrElements An {@link AggregationExpression} that evaluates to a numeric value used as item count.
1038
+ * @param count an {@link AggregationExpression} that evaluates to a numeric value used as number of elements to
1039
+ * slice.
1039
1040
* @return new instance of {@link Slice}.
1040
1041
* @since 4.5
1041
1042
*/
1042
- public Slice itemCount (AggregationExpression nrElements ) {
1043
- return new Slice (append (nrElements ));
1043
+ public Slice itemCount (AggregationExpression count ) {
1044
+ return new Slice (append (count ));
1044
1045
}
1045
1046
1046
1047
/**
@@ -1075,24 +1076,25 @@ public class SliceElementsBuilder {
1075
1076
}
1076
1077
1077
1078
/**
1078
- * Set the number of elements given {@literal nrElements }.
1079
+ * Set the number of elements given {@literal count }.
1079
1080
*
1080
- * @param nrElements
1081
+ * @param count number of elements to slice.
1081
1082
* @return new instance of {@link Slice}.
1082
1083
*/
1083
- public Slice itemCount (int nrElements ) {
1084
- return new Slice (append (position )).itemCount (nrElements );
1084
+ public Slice itemCount (int count ) {
1085
+ return new Slice (append (position )).itemCount (count );
1085
1086
}
1086
1087
1087
1088
/**
1088
1089
* Slice the number of elements.
1089
1090
*
1090
- * @param nrElements An {@link AggregationExpression} that evaluates to a numeric value used as item count.
1091
+ * @param count an {@link AggregationExpression} that evaluates to a numeric value used as number of elements to
1092
+ * slice.
1091
1093
* @return new instance of {@link Slice}.
1092
1094
* @since 4.5
1093
1095
*/
1094
- public Slice itemCount (AggregationExpression nrElements ) {
1095
- return new Slice (append (position )).itemCount (nrElements );
1096
+ public Slice itemCount (AggregationExpression count ) {
1097
+ return new Slice (append (position )).itemCount (count );
1096
1098
}
1097
1099
}
1098
1100
}
0 commit comments