public class DateList<T extends Temporal> extends Object implements Serializable
Constructor and Description |
---|
DateList()
Default constructor.
|
DateList(boolean unmodifiable) |
DateList(boolean unmodifiable,
CalendarDateFormat dateFormat) |
DateList(CalendarDateFormat dateFormat) |
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) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(T date)
Add a date to the list.
|
boolean |
addAll(Collection<? extends T> arg0) |
boolean |
equals(Object obj) |
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(boolean unmodifiable)
public DateList(boolean unmodifiable, 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
- DateTimeParseException
public static <T extends Temporal> DateList<T> parse(String value, CalendarDateFormat calendarDateFormat)
public final boolean add(T date)
date
- the date to addList.add(java.lang.Object)
public final boolean addAll(Collection<? extends T> arg0)