net.fortuna.ical4j.model
Class DateList
ArrayList
net.fortuna.ical4j.model.DateList
- Serializable
public class DateList
extends ArrayList
implements Serializable
$Id: DateList.java,v 1.23 2008/12/16 12:34:52 fortuna Exp $ [23-Apr-2004]
Defines a list of iCalendar dates. If no value type is specified a list
defaults to DATE-TIME instances.
DateList() - Default constructor.
|
DateList(DateList list, Value type) - Constructs a new date list of the specified type containing
the dates in the specified list.
|
DateList(String aValue, Value aType)
|
DateList(String aValue, Value aType, TimeZone timezone) - Parses the specified string representation to create a list of dates.
|
DateList(Value aType)
|
DateList(Value aType, TimeZone timezone) - Default constructor.
|
DateList(int initialCapacity) - Creates a new instance with the specified initial capacity.
|
boolean | add(Date date) - Add a date to the list.
|
boolean | add(Object arg0) - Overrides superclass to throw an
IllegalArgumentException
Where argument is not a net.fortuna.ical4j.model.Date .
|
TimeZone | getTimeZone()
|
Value | getType() - Returns the VALUE parameter specifying the type of dates (ie.
|
boolean | isUtc() - Indicates whether this list is in local or UTC format.
|
boolean | remove(Date date) - Remove a date from the list.
|
void | setTimeZone(TimeZone timeZone) - Applies the specified timezone to all dates in the list.
|
void | setUtc(boolean utc) - Sets whether this list is in UTC or local time format.
|
String | toString()
|
DateList
public DateList()
Default constructor.
DateList
public DateList(DateList list,
Value type)
Constructs a new date list of the specified type containing
the dates in the specified list.
list
- a list of dates to include in the new listtype
- the type of the new list
DateList
public DateList(String aValue,
Value aType)
throws ParseException
DateList
public DateList(String aValue,
Value aType,
TimeZone timezone)
throws ParseException
Parses the specified string representation to create a list of dates.
aValue
- a string representation of a list of datesaType
- specifies the type of dates (either date or date-time)
DateList
public DateList(Value aType)
DateList
public DateList(Value aType,
TimeZone timezone)
Default constructor.
aType
- specifies the type of dates (either date or date-time)
DateList
public DateList(int initialCapacity)
Creates a new instance with the specified initial capacity.
initialCapacity
- the initial capacity of the list
add
public final boolean add(Date date)
Add a date to the list. The date will be updated to reflect the
timezone of this list.
List.add(java.lang.Object)
add
public final boolean add(Object arg0)
Overrides superclass to throw an IllegalArgumentException
Where argument is not a net.fortuna.ical4j.model.Date
.
getTimeZone
public final TimeZone getTimeZone()
getType
public final Value getType()
Returns the VALUE parameter specifying the type of dates (ie. date or
date-time) stored in this date list.
- Returns a Value parameter.
isUtc
public final boolean isUtc()
Indicates whether this list is in local or UTC format. This property will
have no affect if the type of the list is not DATE-TIME.
- Returns true if in UTC format, otherwise false.
remove
public final boolean remove(Date date)
Remove a date from the list.
date
- the date to remove
- true if the list contained the specified date
List.remove(java.lang.Object)
setTimeZone
public final void setTimeZone(TimeZone timeZone)
Applies the specified timezone to all dates in the list.
All dates added to this list will also have this timezone
applied.
setUtc
public final void setUtc(boolean utc)
Sets whether this list is in UTC or local time format.
toString
public final String toString()
java.util.AbstractCollection.toString()