Package net.fortuna.ical4j.model
Class DateList<T extends Temporal>
- java.lang.Object
-
- net.fortuna.ical4j.model.DateList<T>
-
- All Implemented Interfaces:
Serializable
public class DateList<T extends Temporal> extends Object implements Serializable
$Id$ [23-Apr-2004] A DateList is a grouping of date-time instances along with a common format to be applied to all dates in the group.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static DateList
EMPTY_LIST
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DateList<T>
add(T date)
Add a date to the list.DateList<T>
addAll(Collection<? extends T> arg0)
static <T extends Temporal>
DateList<T>emptyList()
boolean
equals(Object o)
List<T>
getDates()
int
hashCode()
static DateList<? extends Temporal>
parse(String value)
Parse a string representation of a date/time list.static DateList<? extends Temporal>
parse(String value, ZoneId zoneId)
static DateList<ZonedDateTime>
parse(String value, TzId tzId, TimeZoneRegistry timeZoneRegistry)
String
toString()
String
toString(ZoneId zoneId)
-
-
-
Field Detail
-
EMPTY_LIST
public static final DateList EMPTY_LIST
-
-
Constructor Detail
-
DateList
public DateList()
Default constructor.
-
DateList
public DateList(T... dates)
Constructs a new date list of the specified type containing the dates in the specified list.- Parameters:
dates
- a list of dates to include in the new list
-
DateList
public DateList(TimeZoneRegistry timeZoneRegistry, T... dates)
-
-
Method Detail
-
parse
public static DateList<? extends Temporal> parse(String value)
Parse a string representation of a date/time list.- Parameters:
value
-- Returns:
- Throws:
DateTimeParseException
-
parse
public static DateList<ZonedDateTime> parse(String value, TzId tzId, TimeZoneRegistry timeZoneRegistry)
-
add
public final DateList<T> add(T date)
Add a date to the list. The date will be updated to reflect the timezone of this list.- Parameters:
date
- the date to add- Returns:
- true
- See Also:
List.add(java.lang.Object)
-
addAll
public final DateList<T> addAll(Collection<? extends T> arg0)
-
-