public class Date extends Instant<Date>
| Constructor and Description |
|---|
Date(int year,
int month,
int dayOfMonth) |
Date(LocalDate date) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Date that) |
boolean |
equals(Object object) |
String |
format(String pattern) |
DataType |
getDataType() |
LocalDate |
getDate() |
int |
hashCode() |
static Date |
parse(String value) |
DaysSinceDate |
toDaysSinceYear(int year) |
String |
toSimpleValue() |
static Date |
valueOf(Object value) |
public Date(int year,
int month,
int dayOfMonth)
public Date(LocalDate date)
public DataType getDataType()
getDataType in class Instant<Date>public String toSimpleValue()
null value,
which can be converted to String representation via Object.toString().public String format(String pattern)
format in class Instant<Date>String.format(String, Object...)public DaysSinceDate toDaysSinceYear(int year)
public int compareTo(Date that)
public LocalDate getDate()
public static Date parse(String value) throws DateTimeParseException
DateTimeParseExceptionCopyright © 2024. All rights reserved.