Serializablepublic class DateList<T extends Temporal> extends Object implements Serializable
| Constructor | Description |
|---|---|
DateList() |
Default constructor.
|
DateList(List<T> list) |
Constructs a new date list of the specified type containing
the dates in the specified list.
|
DateList(List<T> list,
CalendarDateFormat dateFormat) |
|
DateList(CalendarDateFormat dateFormat) |
| Modifier and Type | Method | Description |
|---|---|---|
DateList<T> |
add(T date) |
Add a date to the list.
|
DateList<T> |
addAll(Collection<? extends T> arg0) |
|
boolean |
equals(Object o) |
|
List<T> |
getDates() |
|
int |
hashCode() |
|
static <T extends Temporal> |
parse(String value) |
Parse a string representation of a date/time list.
|
static <T extends Temporal> |
parse(String value,
CalendarDateFormat calendarDateFormat) |
|
String |
toString() |
|
String |
toString(ZoneId zoneId) |
public DateList()
public DateList(CalendarDateFormat dateFormat)
public DateList(List<T> list)
list - a list of dates to include in the new listpublic DateList(List<T> list, CalendarDateFormat dateFormat)
public static <T extends Temporal> DateList<T> parse(String value)
T - value - DateTimeParseExceptionpublic static <T extends Temporal> DateList<T> parse(String value, CalendarDateFormat calendarDateFormat)
public final DateList<T> add(T date)
date - the date to addList.add(java.lang.Object)public final DateList<T> addAll(Collection<? extends T> arg0)