Add millis methods to DateClientParam,
@@ -177,6 +177,20 @@ public class DateClientParam extends BaseClientParam implements IParam {
return constructCriterion(dt);
}
+ @Override
+ public IDateCriterion millis(Date theValue) {
+ DateTimeDt dt = new DateTimeDt(theValue);
+ dt.setPrecision(TemporalPrecisionEnum.MILLI);
+ return constructCriterion(dt);
+ }
+
+ @Override
+ public IDateCriterion millis(String theValue) {
+ DateTimeDt dt = new DateTimeDt(theValue);
+ dt.setPrecision(TemporalPrecisionEnum.MILLI);
+ return constructCriterion(dt);
+ }
+
private IDateCriterion constructCriterion(DateTimeDt dt) {
String valueAsString = dt.getValueAsString();
Criterion criterion = new Criterion(myPrefix, valueAsString);
@@ -199,6 +213,10 @@ public class DateClientParam extends BaseClientParam implements IParam {
IDateCriterion second(String theValue);
+ IDateCriterion millis(Date theValue);
+
+ IDateCriterion millis(String theValue);
+
}
public interface IDateCriterion extends ICriterion<DateClientParam> {
