listIterator(int index) listIterator - Returns a list iterator of the elements in this list (in
proper sequence), starting at the specified position in the list.
setScheduleElement(ScheduleElement aScheduleElement) set a single schedule element - used for a simple schedule
container will be cleared before it is added to ensure that
there is only one schedule element.
add object to Schedule. Verifies that object matches specifed
ScheduleElement type.
Parameters: o - Object to add to Schedule boolean true if successful, else false
get an enumeration over a copy of all of the schedule elements of this
schedule.
Note that this is a copy, changes to the underlying schedule will not be
reflected in the Enumeration.
Enumeration{ScheduleElement}
getEncapsulatedScheduleElements
public synchronized Collection getEncapsulatedScheduleElements(Date startDate, Date endDate)(Code)
get a Collection of schedule elements that are fully bound
or encapsulated by a date range.
OrderedSet
getEncapsulatedScheduleElements
public synchronized Collection getEncapsulatedScheduleElements(long startTime, long endTime)(Code)
public synchronized Collection getOverlappingScheduleElements(Date startDate, Date endDate)(Code)
get a sorted Collection of schedule elements that have dates in the
given range of dates. Note that these schedule elements may
or may not be fully bound by the date range - they may overlap.
OrderedSet
getOverlappingScheduleElements
public synchronized Collection getOverlappingScheduleElements(long startTime, long endTime)(Code)
get a colleciton of schedule elements that include this date.
Note that the schedule element can have a start or end date
that equals the given date or the date may fall in the time span
of a schedule element.
OrderedSet
getScheduleElementsWithTime
public synchronized Collection getScheduleElementsWithTime(long aTime)(Code)
returns Iterator over a copy of the Schedule. Prints a warning and
dumps a stack trace.
Use filter() to get an copy which can be iterated over without
the warning.
Iterator over a copy
listIterator - Returns an iterator of the elements in this list
(in proper sequence).
Iterator does not support add(Object o)/set(Object o)
ListIterator
listIterator - Returns a list iterator of the elements in this list (in
proper sequence), starting at the specified position in the list.
Iterator does not support add(Object o)/set(Object o)
ListIterator
set a single schedule element - used for a simple schedule
container will be cleared before it is added to ensure that
there is only one schedule element.
Parameters: aScheduleElement -
setScheduleElementType
public synchronized void setScheduleElementType(Class setype)(Code)
setScheduleElements
public synchronized void setScheduleElements(Collection collection)(Code)
Set the schedule elements for this schedule.
Note this method assumes that you are adding things to
an empty container, hence it clears the container of old
schedule elements before setting the new ones.
setScheduleElements
public synchronized void setScheduleElements(Enumeration someScheduleElements)(Code)
setScheduleType
public synchronized void setScheduleType(String type)(Code)
subList
public synchronized List subList(int fromIndex, int toIndex)(Code)
returns a subset from a copy of the Schedule. Prints a warning and
dumps a stack trace. Subset made from a copy of the Schedule so that
the Schedule continues to Synchronization safe.
Use filter() to get an copy which can be iterated over without
the warning.
Iterator over a copy