|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.fortuna.ical4j.model.DateList
public class DateList
$Id$ [23-Apr-2004] Defines a list of iCalendar dates. If no value type is specified a list defaults to DATE-TIME instances.
| Constructor Summary | |
|---|---|
DateList()
Default constructor. |
|
DateList(boolean unmodifiable)
|
|
DateList(DateList list,
Value type)
Constructs a new date list of the specified type containing the dates in the specified list. |
|
DateList(int initialCapacity)
Deprecated. |
|
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. |
|
| Method Summary | |
|---|---|
boolean |
add(Date date)
Add a date to the list. |
void |
add(int arg0,
Object arg1)
|
boolean |
add(Object date)
Overrides superclass to throw an IllegalArgumentException
Where argument is not a net.fortuna.ical4j.model.Date. |
boolean |
addAll(Collection arg0)
|
boolean |
addAll(int arg0,
Collection arg1)
|
void |
clear()
|
boolean |
contains(Object o)
|
boolean |
containsAll(Collection arg0)
|
boolean |
equals(Object obj)
|
Object |
get(int index)
|
TimeZone |
getTimeZone()
|
Value |
getType()
Returns the VALUE parameter specifying the type of dates (ie. |
int |
hashCode()
|
int |
indexOf(Object o)
|
boolean |
isEmpty()
|
boolean |
isUtc()
Indicates whether this list is in local or UTC format. |
Iterator |
iterator()
|
int |
lastIndexOf(Object o)
|
ListIterator |
listIterator()
|
ListIterator |
listIterator(int index)
|
boolean |
remove(Date date)
Remove a date from the list. |
Object |
remove(int index)
|
boolean |
remove(Object o)
|
boolean |
removeAll(Collection arg0)
|
boolean |
retainAll(Collection arg0)
|
Object |
set(int arg0,
Object arg1)
|
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. |
int |
size()
|
List |
subList(int fromIndex,
int toIndex)
|
Object[] |
toArray()
|
Object[] |
toArray(Object[] arg0)
|
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DateList()
public DateList(boolean unmodifiable)
public DateList(int initialCapacity)
initialCapacity - the initial capacity of the listpublic DateList(Value aType)
aType - the type of dates contained by the instance
public DateList(Value aType,
TimeZone timezone)
aType - specifies the type of dates (either date or date-time)timezone - the timezone to apply to dates contained by the instance
public DateList(String aValue,
Value aType)
throws ParseException
aValue - a string representation of a date listaType - the date types contained in the instance
ParseException - where the specified string is not a valid date list
public DateList(String aValue,
Value aType,
TimeZone timezone)
throws ParseException
aValue - a string representation of a list of datesaType - specifies the type of dates (either date or date-time)timezone - the timezone to apply to contained dates
ParseException - if an invalid date representation exists in the date list
string
public DateList(DateList list,
Value type)
list - a list of dates to include in the new listtype - the type of the new list| Method Detail |
|---|
public final String toString()
toString in class Objectpublic final boolean add(Date date)
date - the date to add
List.add(java.lang.Object)public final boolean add(Object date)
IllegalArgumentException
Where argument is not a net.fortuna.ical4j.model.Date.
add in interface Collectionadd in interface Listdate - the date to add
List#add(E)public final boolean remove(Date date)
date - the date to remove
List.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 - a timezone to apply to contained datespublic final TimeZone getTimeZone()
public void add(int arg0,
Object arg1)
add in interface Listpublic boolean addAll(Collection arg0)
addAll in interface CollectionaddAll in interface List
public boolean addAll(int arg0,
Collection arg1)
addAll in interface Listpublic void clear()
clear in interface Collectionclear in interface Listpublic boolean contains(Object o)
contains in interface Collectioncontains in interface Listpublic boolean containsAll(Collection arg0)
containsAll in interface CollectioncontainsAll in interface Listpublic Object get(int index)
get in interface Listpublic int indexOf(Object o)
indexOf in interface Listpublic boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface Listpublic Iterator iterator()
iterator in interface Iterableiterator in interface Collectioniterator in interface Listpublic int lastIndexOf(Object o)
lastIndexOf in interface Listpublic ListIterator listIterator()
listIterator in interface Listpublic ListIterator listIterator(int index)
listIterator in interface Listpublic Object remove(int index)
remove in interface Listpublic boolean remove(Object o)
remove in interface Collectionremove in interface Listpublic boolean removeAll(Collection arg0)
removeAll in interface CollectionremoveAll in interface Listpublic boolean retainAll(Collection arg0)
retainAll in interface CollectionretainAll in interface List
public Object set(int arg0,
Object arg1)
set in interface Listpublic int size()
size in interface Collectionsize in interface List
public List subList(int fromIndex,
int toIndex)
subList in interface Listpublic Object[] toArray()
toArray in interface CollectiontoArray in interface Listpublic Object[] toArray(Object[] arg0)
toArray in interface CollectiontoArray in interface Listpublic boolean equals(Object obj)
equals in interface Collectionequals in interface Listequals in class Objectpublic int hashCode()
hashCode in interface CollectionhashCode in interface ListhashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||