[New] Added new constructors to DateParameter
This commit is contained in:
parent
78894216d0
commit
682ce014be
|
@ -56,6 +56,36 @@ public class DateParameter extends AbstractParameter<Date> {
|
||||||
setValue(value);
|
setValue(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Default Constructor
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* the id
|
||||||
|
* @param name
|
||||||
|
* the name
|
||||||
|
* @param value
|
||||||
|
* the value
|
||||||
|
*/
|
||||||
|
public DateParameter(String id, String name, LocalDateTime value) {
|
||||||
|
super(id, name);
|
||||||
|
setValueFromLocalDateTime(value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Default Constructor
|
||||||
|
*
|
||||||
|
* @param id
|
||||||
|
* the id
|
||||||
|
* @param name
|
||||||
|
* the name
|
||||||
|
* @param value
|
||||||
|
* the value
|
||||||
|
*/
|
||||||
|
public DateParameter(String id, String name, ZonedDateTime value) {
|
||||||
|
super(id, name);
|
||||||
|
setValueFromZonedDateTime(value);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getValueAsString() {
|
public String getValueAsString() {
|
||||||
return ISO8601.toString(this.value);
|
return ISO8601.toString(this.value);
|
||||||
|
|
Loading…
Reference in New Issue