public class DateList extends java.lang.Object implements java.util.List<Date>, java.io.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(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.
|
void |
add(int arg0,
Date arg1) |
boolean |
addAll(java.util.Collection<? extends Date> arg0) |
boolean |
addAll(int arg0,
java.util.Collection<? extends Date> arg1) |
void |
clear() |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection<?> arg0) |
boolean |
equals(java.lang.Object obj) |
Date |
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<Date> |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator<Date> |
listIterator() |
java.util.ListIterator<Date> |
listIterator(int index) |
boolean |
remove(Date date)
Remove a date from the list.
|
Date |
remove(int index) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection<?> arg0) |
boolean |
retainAll(java.util.Collection<?> arg0) |
Date |
set(int arg0,
Date 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<Date> |
subList(int fromIndex,
int toIndex) |
java.lang.Object[] |
toArray() |
<T> T[] |
toArray(T[] arg0) |
java.lang.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(java.lang.String aValue, Value aType) throws java.text.ParseException
aValue
- a string representation of a date listaType
- the date types contained in the instancejava.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 datesjava.text.ParseException
- if an invalid date representation exists in the date list
stringpublic final java.lang.String toString()
toString
in class java.lang.Object
public final boolean add(Date date)
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(java.util.Collection<? extends Date> arg0)
public final boolean addAll(int arg0, java.util.Collection<? extends Date> arg1)
addAll
in interface java.util.List<Date>
public final void clear()
public final boolean contains(java.lang.Object o)
public final boolean containsAll(java.util.Collection<?> arg0)
public final int indexOf(java.lang.Object o)
indexOf
in interface java.util.List<Date>
public final boolean isEmpty()
public final java.util.Iterator<Date> iterator()
public final int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List<Date>
public final java.util.ListIterator<Date> listIterator()
listIterator
in interface java.util.List<Date>
public final java.util.ListIterator<Date> listIterator(int index)
listIterator
in interface java.util.List<Date>
public final boolean remove(java.lang.Object o)
public final boolean removeAll(java.util.Collection<?> arg0)
public final boolean retainAll(java.util.Collection<?> arg0)
public final int size()
public final java.util.List<Date> subList(int fromIndex, int toIndex)
subList
in interface java.util.List<Date>
public final java.lang.Object[] toArray()
public final <T> T[] toArray(T[] arg0)
public final boolean equals(java.lang.Object obj)