@@ -1829,34 +1829,74 @@ default T secondOf(AggregationExpression expression) {
18291829 }
18301830
18311831 /**
1832- * Set the {@literal milliseconds } to the given value which must resolve to a value in range {@code 0 - 999}. Can be
1832+ * Set the {@literal millisecond } to the given value which must resolve to a value in range {@code 0 - 999}. Can be
18331833 * a simple value, {@link Field field reference} or {@link AggregationExpression expression}.
18341834 *
1835- * @param milliseconds must not be {@literal null}.
1835+ * @param millisecond must not be {@literal null}.
18361836 * @return new instance.
1837- * @throws IllegalArgumentException if given {@literal milliseconds} is {@literal null}
1837+ * @throws IllegalArgumentException if given {@literal millisecond} is {@literal null}
1838+ * @deprecated use {@link #millisecond(Object)} instead.
18381839 */
1839- T milliseconds (Object milliseconds );
1840+ @ Deprecated
1841+ default T milliseconds (Object millisecond ) {
1842+ return millisecond (millisecond );
1843+ }
1844+
1845+ /**
1846+ * Set the {@literal millisecond} to the given value which must resolve to a value in range {@code 0 - 999}. Can be
1847+ * a simple value, {@link Field field reference} or {@link AggregationExpression expression}.
1848+ *
1849+ * @param millisecond must not be {@literal null}.
1850+ * @return new instance.
1851+ * @throws IllegalArgumentException if given {@literal millisecond} is {@literal null}
1852+ */
1853+ T millisecond (Object millisecond );
18401854
18411855 /**
1842- * Set the {@literal milliseconds } to the value resolved by following the given {@link Field field reference}.
1856+ * Set the {@literal millisecond } to the value resolved by following the given {@link Field field reference}.
18431857 *
18441858 * @param fieldReference must not be {@literal null}.
18451859 * @return new instance.
18461860 * @throws IllegalArgumentException if given {@literal fieldReference} is {@literal null}.
1861+ * @deprecated use {@link #millisecondOf(String)} instead.
18471862 */
1863+ @ Deprecated
18481864 default T millisecondsOf (String fieldReference ) {
1865+ return millisecondOf (fieldReference );
1866+ }
1867+
1868+ /**
1869+ * Set the {@literal millisecond} to the value resolved by following the given {@link Field field reference}.
1870+ *
1871+ * @param fieldReference must not be {@literal null}.
1872+ * @return new instance.
1873+ * @throws IllegalArgumentException if given {@literal fieldReference} is {@literal null}.
1874+ */
1875+ default T millisecondOf (String fieldReference ) {
18491876 return milliseconds (Fields .field (fieldReference ));
18501877 }
18511878
18521879 /**
1853- * Set the {@literal milliseconds } to the result of the given {@link AggregationExpression expression}.
1880+ * Set the {@literal millisecond } to the result of the given {@link AggregationExpression expression}.
18541881 *
18551882 * @param expression must not be {@literal null}.
18561883 * @return new instance.
18571884 * @throws IllegalArgumentException if given {@literal expression} is {@literal null}.
1885+ * @deprecated use {@link #millisecondOf(AggregationExpression)} instead.
18581886 */
1887+ @ Deprecated
18591888 default T millisecondsOf (AggregationExpression expression ) {
1889+ return millisecondOf (expression );
1890+ }
1891+
1892+ /**
1893+ * Set the {@literal milliseconds} to the result of the given {@link AggregationExpression expression}.
1894+ *
1895+ * @param expression must not be {@literal null}.
1896+ * @return new instance.
1897+ * @throws IllegalArgumentException if given {@literal expression} is {@literal null}.
1898+ */
1899+ default T millisecondOf (AggregationExpression expression ) {
18601900 return milliseconds (expression );
18611901 }
18621902 }
@@ -1971,8 +2011,8 @@ public DateFromParts second(Object second) {
19712011 }
19722012
19732013 @ Override
1974- public DateFromParts milliseconds (Object milliseconds ) {
1975- return new DateFromParts (append ("milliseconds " , milliseconds ));
2014+ public DateFromParts millisecond (Object millisecond ) {
2015+ return new DateFromParts (append ("millisecond " , millisecond ));
19762016 }
19772017
19782018 /**
@@ -2147,8 +2187,8 @@ public IsoDateFromParts second(Object second) {
21472187 }
21482188
21492189 @ Override
2150- public IsoDateFromParts milliseconds (Object milliseconds ) {
2151- return new IsoDateFromParts (append ("milliseconds " , milliseconds ));
2190+ public IsoDateFromParts millisecond (Object millisecond ) {
2191+ return new IsoDateFromParts (append ("millisecond " , millisecond ));
21522192 }
21532193
21542194 /**
0 commit comments