| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
LOGGER |
| Constructor and Description |
|---|
AbstractDate(DateType type)
Simple constructor that requires all mandatory fields.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDateInformation()
Returns specific free text information about the date.
|
DateType |
getType()
Returns the event that is marked by this date.
|
abstract String |
getValue()
Returns the value of the date.
|
void |
setDateInformation(String dateInformation)
Changes the specific free text information about the date.
|
void |
setType(DateType type)
Changes the event that is marked by this date.
|
abstract void |
setValue(String value)
Changes the date value.
|
protected static Instant |
stringToInstant(String stringValue)
Tries to parse a String to a date.
|
protected static Instant |
unixTimestampToInstant(long epochMilli)
Creates an instant using the amount of milliseconds that passed
from 01/01/1970 00:00:00 until this date.
|
public AbstractDate(DateType type)
type - the event that is marked by this datepublic abstract String getValue()
public abstract void setValue(String value)
value - the new valuepublic DateType getType()
public void setType(DateType type)
type - the event that is marked by this datepublic String getDateInformation()
public void setDateInformation(String dateInformation)
dateInformation - specific free text information about the dateprotected static Instant stringToInstant(String stringValue)
stringValue - the String that is to be parsedprotected static Instant unixTimestampToInstant(long epochMilli)
epochMilli - the amount of milliseconds between 01/01/1970 00:00:00 and this dateCopyright © 2017–2018. All rights reserved.