net.fortuna.ical4j.model
public class PeriodList extends Object implements Set, Serializable
java.util.SortedSet interface period lists will always be
sorted according to natural ordering.| Constructor and Description |
|---|
PeriodList()
Default constructor.
|
PeriodList(boolean utc) |
PeriodList(boolean utc,
boolean unmodifiable) |
PeriodList(String aValue)
Parses the specified string representation to create a list of periods.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(Object period)
Overrides superclass to throw an
IllegalArgumentException
where argument is not a net.fortuna.ical4j.model.Period. |
boolean |
add(Period period)
Add a period to the list.
|
PeriodList |
add(PeriodList periods)
A convenience method that combines all the periods in the specified list to
this list.
|
boolean |
addAll(Collection arg0) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection arg0) |
boolean |
equals(Object obj) |
TimeZone |
getTimeZone() |
int |
hashCode() |
boolean |
isEmpty() |
boolean |
isUnmodifiable() |
boolean |
isUtc()
Indicates whether this list is in local or UTC format.
|
Iterator |
iterator() |
PeriodList |
normalise()
Returns a normalised version of this period list.
|
boolean |
remove(Object o) |
boolean |
remove(Period period)
Remove a period from the list.
|
boolean |
removeAll(Collection arg0) |
boolean |
retainAll(Collection arg0) |
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() |
PeriodList |
subtract(PeriodList subtractions)
Subtracts the intersection of this list with the specified list of
periods from this list and returns the results as a new period list.
|
Object[] |
toArray() |
Object[] |
toArray(Object[] arg0) |
String |
toString() |
public PeriodList()
public PeriodList(boolean utc)
utc - indicates whether the period list is in UTC timepublic PeriodList(boolean utc,
boolean unmodifiable)
utc - indicates whether the period list is in UTC timepublic PeriodList(String aValue) throws ParseException
aValue - a string representation of a list of periodsParseException - thrown when an invalid string representation of a period list
is specifiedpublic final boolean add(Period period)
period - the period to addList.add(java.lang.Object)public final boolean add(Object period)
IllegalArgumentException
where argument is not a net.fortuna.ical4j.model.Period.add in interface Collectionadd in interface Setperiod - a period to add to the listList.add(Object)public final boolean remove(Period period)
period - the period to removeList.remove(java.lang.Object)public final PeriodList normalise()
public final PeriodList add(PeriodList periods)
periods - a list of periods to addpublic final PeriodList subtract(PeriodList subtractions)
subtractions - a list of periods to subtract from this listpublic final boolean isUnmodifiable()
public final boolean isUtc()
public final void setUtc(boolean utc)
utc - The utc to set.public final void setTimeZone(TimeZone timeZone)
timeZone - the timezone for the period listpublic final TimeZone getTimeZone()
public final boolean addAll(Collection arg0)
addAll in interface CollectionaddAll in interface Setpublic final void clear()
clear in interface Collectionclear in interface Setpublic final boolean contains(Object o)
contains in interface Collectioncontains in interface Setpublic final boolean containsAll(Collection arg0)
containsAll in interface CollectioncontainsAll in interface Setpublic final boolean isEmpty()
isEmpty in interface CollectionisEmpty in interface Setpublic final Iterator iterator()
public final boolean remove(Object o)
remove in interface Collectionremove in interface Setpublic final boolean removeAll(Collection arg0)
removeAll in interface CollectionremoveAll in interface Setpublic final boolean retainAll(Collection arg0)
retainAll in interface CollectionretainAll in interface Setpublic final int size()
size in interface Collectionsize in interface Setpublic final Object[] toArray()
toArray in interface CollectiontoArray in interface Setpublic final Object[] toArray(Object[] arg0)
toArray in interface CollectiontoArray in interface Setpublic final boolean equals(Object obj)
Copyright © 2004-2013 Micronode. All Rights Reserved.