public class DateList
extends java.util.ArrayList
implements java.io.Serializable
| Constructor and Description |
|---|
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(int initialCapacity)
Creates a new instance with the specified initial capacity.
|
DateList(java.lang.String aValue,
Value aType) |
DateList(java.lang.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.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Date date)
Add a date to the list.
|
boolean |
add(java.lang.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.
|
java.lang.String |
toString() |
add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizepublic DateList()
public DateList(int initialCapacity)
initialCapacity - the initial capacity of the listpublic DateList(Value aType)
aType - public DateList(Value aType, TimeZone timezone)
aType - specifies the type of dates (either date or date-time)public DateList(java.lang.String aValue,
Value aType)
throws java.text.ParseException
aValue - aType - java.text.ParseExceptionpublic DateList(java.lang.String aValue,
Value aType,
TimeZone timezone)
throws java.text.ParseException
aValue - a string representation of a list of datesaType - specifies the type of dates (either date or date-time)java.text.ParseException - if an invalid date representation exists in the date list
stringpublic final java.lang.String toString()
toString in class java.util.AbstractCollectionAbstractCollection.toString()public final boolean add(Date date)
date - the date to addList#add(java.lang.Object)public final boolean add(java.lang.Object arg0)
IllegalArgumentException
Where argument is not a net.fortuna.ical4j.model.Date.add in interface java.util.Collectionadd in interface java.util.Listadd in class java.util.ArrayListList#add(E)public final boolean remove(Date date)
date - the date to removeList#remove(java.lang.Object)public final Value getType()
public final boolean isUtc()
public final void setUtc(boolean utc)
utc - The utc to set.public final void setTimeZone(TimeZone timeZone)
timezone - public final TimeZone getTimeZone()