net.fortuna.ical4j.model
public class DateList extends Object implements List, Serializable
Constructor and Description |
---|
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(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.
|
Modifier and Type | Method and Description |
---|---|
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() |
public DateList()
public DateList(boolean unmodifiable)
public 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(String aValue, Value aType) throws ParseException
aValue
- a string representation of a date listaType
- the date types contained in the instanceParseException
- where the specified string is not a valid date listpublic 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 datesParseException
- if an invalid date representation exists in the date list
stringpublic final boolean add(Date date)
date
- the date to addList.add(Object)
public final boolean add(Object date)
IllegalArgumentException
Where argument is not a net.fortuna.ical4j.model.Date
.add
in interface Collection
add
in interface List
date
- the date to addList.add(Object)
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
- a timezone to apply to contained datespublic final TimeZone getTimeZone()
public final boolean addAll(Collection arg0)
addAll
in interface Collection
addAll
in interface List
public final boolean addAll(int arg0, Collection arg1)
public final void clear()
clear
in interface Collection
clear
in interface List
public final boolean contains(Object o)
contains
in interface Collection
contains
in interface List
public final boolean containsAll(Collection arg0)
containsAll
in interface Collection
containsAll
in interface List
public final boolean isEmpty()
isEmpty
in interface Collection
isEmpty
in interface List
public final Iterator iterator()
public final int lastIndexOf(Object o)
lastIndexOf
in interface List
public final ListIterator listIterator()
listIterator
in interface List
public final ListIterator listIterator(int index)
listIterator
in interface List
public final boolean remove(Object o)
remove
in interface Collection
remove
in interface List
public final boolean removeAll(Collection arg0)
removeAll
in interface Collection
removeAll
in interface List
public final boolean retainAll(Collection arg0)
retainAll
in interface Collection
retainAll
in interface List
public final int size()
size
in interface Collection
size
in interface List
public final List subList(int fromIndex, int toIndex)
public final Object[] toArray()
toArray
in interface Collection
toArray
in interface List
public final Object[] toArray(Object[] arg0)
toArray
in interface Collection
toArray
in interface List
public final boolean equals(Object obj)
Copyright © 2004-2013 Micronode. All Rights Reserved.