|
||||||||||
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: DateList.java,v 1.32 2011/03/19 07:06:53 fortuna Exp $ [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(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. |
Method Summary | |
---|---|
boolean |
add(Date date)
Add a date to the list. |
void |
add(int arg0,
java.lang.Object arg1)
|
boolean |
add(java.lang.Object date)
Overrides superclass to throw an IllegalArgumentException
Where argument is not a net.fortuna.ical4j.model.Date . |
boolean |
addAll(java.util.Collection arg0)
|
boolean |
addAll(int arg0,
java.util.Collection arg1)
|
void |
clear()
|
boolean |
contains(java.lang.Object o)
|
boolean |
containsAll(java.util.Collection arg0)
|
boolean |
equals(java.lang.Object obj)
|
java.lang.Object |
get(int index)
|
TimeZone |
getTimeZone()
|
Value |
getType()
Returns the VALUE parameter specifying the type of dates (ie. |
int |
hashCode()
|
int |
indexOf(java.lang.Object o)
|
boolean |
isEmpty()
|
boolean |
isUtc()
Indicates whether this list is in local or UTC format. |
java.util.Iterator |
iterator()
|
int |
lastIndexOf(java.lang.Object o)
|
java.util.ListIterator |
listIterator()
|
java.util.ListIterator |
listIterator(int index)
|
boolean |
remove(Date date)
Remove a date from the list. |
java.lang.Object |
remove(int index)
|
boolean |
remove(java.lang.Object o)
|
boolean |
removeAll(java.util.Collection arg0)
|
boolean |
retainAll(java.util.Collection arg0)
|
java.lang.Object |
set(int arg0,
java.lang.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()
|
java.util.List |
subList(int fromIndex,
int toIndex)
|
java.lang.Object[] |
toArray()
|
java.lang.Object[] |
toArray(java.lang.Object[] arg0)
|
java.lang.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 instancepublic 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 instancepublic DateList(java.lang.String aValue, Value aType) throws java.text.ParseException
aValue
- a string representation of a date listaType
- the date types contained in the instance
java.text.ParseException
- where the specified string is not a valid date listpublic 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)timezone
- the timezone to apply to contained dates
java.text.ParseException
- if an invalid date representation exists in the date list
stringpublic DateList(DateList list, Value type)
list
- a list of dates to include in the new listtype
- the type of the new listMethod Detail |
---|
public final java.lang.String toString()
toString
in class java.lang.Object
public final boolean add(Date date)
date
- the date to add
List.add(java.lang.Object)
public final boolean add(java.lang.Object date)
IllegalArgumentException
Where argument is not a net.fortuna.ical4j.model.Date
.
add
in interface java.util.Collection
add
in interface java.util.List
date
- 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, java.lang.Object arg1)
add
in interface java.util.List
public boolean addAll(java.util.Collection arg0)
addAll
in interface java.util.Collection
addAll
in interface java.util.List
public boolean addAll(int arg0, java.util.Collection arg1)
addAll
in interface java.util.List
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.List
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection
contains
in interface java.util.List
public boolean containsAll(java.util.Collection arg0)
containsAll
in interface java.util.Collection
containsAll
in interface java.util.List
public java.lang.Object get(int index)
get
in interface java.util.List
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List
public boolean isEmpty()
isEmpty
in interface java.util.Collection
isEmpty
in interface java.util.List
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.List
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List
public java.util.ListIterator listIterator()
listIterator
in interface java.util.List
public java.util.ListIterator listIterator(int index)
listIterator
in interface java.util.List
public java.lang.Object remove(int index)
remove
in interface java.util.List
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection
remove
in interface java.util.List
public boolean removeAll(java.util.Collection arg0)
removeAll
in interface java.util.Collection
removeAll
in interface java.util.List
public boolean retainAll(java.util.Collection arg0)
retainAll
in interface java.util.Collection
retainAll
in interface java.util.List
public java.lang.Object set(int arg0, java.lang.Object arg1)
set
in interface java.util.List
public int size()
size
in interface java.util.Collection
size
in interface java.util.List
public java.util.List subList(int fromIndex, int toIndex)
subList
in interface java.util.List
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
toArray
in interface java.util.List
public java.lang.Object[] toArray(java.lang.Object[] arg0)
toArray
in interface java.util.Collection
toArray
in interface java.util.List
public boolean equals(java.lang.Object obj)
equals
in interface java.util.Collection
equals
in interface java.util.List
equals
in class java.lang.Object
public int hashCode()
hashCode
in interface java.util.Collection
hashCode
in interface java.util.List
hashCode
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |