[Major] Moved DateParameter.EMPTY_VALUE to ISO8601
This commit is contained in:
parent
ac913acc06
commit
1b48f2561c
|
@ -15,6 +15,8 @@
|
|||
*/
|
||||
package li.strolch.model.parameter;
|
||||
|
||||
import static li.strolch.utils.iso8601.ISO8601.EMPTY_VALUE;
|
||||
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.ZoneId;
|
||||
import java.time.ZonedDateTime;
|
||||
|
@ -30,8 +32,6 @@ import li.strolch.utils.iso8601.ISO8601;
|
|||
*/
|
||||
public class DateParameter extends AbstractParameter<Date> {
|
||||
|
||||
private static final Date EMPTY_VALUE = ISO8601.parseToDate("-");
|
||||
|
||||
private Date value;
|
||||
|
||||
/**
|
||||
|
|
|
@ -33,6 +33,8 @@ public class ISO8601 implements DateFormat {
|
|||
|
||||
private static final Logger logger = LoggerFactory.getLogger(ISO8601.class);
|
||||
|
||||
public static final Date EMPTY_VALUE = parseToDate("-");
|
||||
|
||||
@Override
|
||||
public String format(long timePoint) {
|
||||
if (timePoint == Long.MAX_VALUE || timePoint == Long.MIN_VALUE)
|
||||
|
|
Loading…
Reference in New Issue