@@ -1829,34 +1829,74 @@ default T secondOf(AggregationExpression expression) {
1829
1829
}
1830
1830
1831
1831
/**
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
1833
1833
* a simple value, {@link Field field reference} or {@link AggregationExpression expression}.
1834
1834
*
1835
- * @param milliseconds must not be {@literal null}.
1835
+ * @param millisecond must not be {@literal null}.
1836
1836
* @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.
1838
1839
*/
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 );
1840
1854
1841
1855
/**
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}.
1843
1857
*
1844
1858
* @param fieldReference must not be {@literal null}.
1845
1859
* @return new instance.
1846
1860
* @throws IllegalArgumentException if given {@literal fieldReference} is {@literal null}.
1861
+ * @deprecated use {@link #millisecondOf(String)} instead.
1847
1862
*/
1863
+ @ Deprecated
1848
1864
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 ) {
1849
1876
return milliseconds (Fields .field (fieldReference ));
1850
1877
}
1851
1878
1852
1879
/**
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}.
1854
1881
*
1855
1882
* @param expression must not be {@literal null}.
1856
1883
* @return new instance.
1857
1884
* @throws IllegalArgumentException if given {@literal expression} is {@literal null}.
1885
+ * @deprecated use {@link #millisecondOf(AggregationExpression)} instead.
1858
1886
*/
1887
+ @ Deprecated
1859
1888
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 ) {
1860
1900
return milliseconds (expression );
1861
1901
}
1862
1902
}
@@ -1971,8 +2011,8 @@ public DateFromParts second(Object second) {
1971
2011
}
1972
2012
1973
2013
@ 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 ));
1976
2016
}
1977
2017
1978
2018
/**
@@ -2147,8 +2187,8 @@ public IsoDateFromParts second(Object second) {
2147
2187
}
2148
2188
2149
2189
@ 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 ));
2152
2192
}
2153
2193
2154
2194
/**
0 commit comments