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
-
-
Constructor Summary
Constructors Constructor Description DateList()
Default constructor.DateList(List<TemporalAdapter<T>> list)
Constructs a new date list of the specified type containing the dates in the specified 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)
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<ZonedDateTime>
parse(String value, TzId tzId, TimeZoneRegistry timeZoneRegistry)
String
toString()
String
toString(ZoneId zoneId)
-
-
-
Constructor Detail
-
DateList
public DateList()
Default constructor.
-
DateList
public DateList(List<TemporalAdapter<T>> list)
Constructs a new date list of the specified type containing the dates in the specified list.- Parameters:
list
- a list of dates to include in the new list
-
-
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)
-
-