public interface CalendarList extends OsidList
Like all OsidLists,
CalendarList
provides
a means for accessing Calendar
elements sequentially either
one at a time or many at a time. Examples:
while (cl.hasNext()) { Calendar calendar = cl.getNextCalendar(); }or
while (cl.hasNext()) { Calendar[] calendars = cl.getNextCalendars(cl.available()); }
Modifier and Type | Method and Description |
---|---|
Calendar |
getNextCalendar()
Gets the next
Calendar in this list. |
Calendar[] |
getNextCalendars(long n)
Gets the next set of
Calendar elements in this list
which must be less than or equal to the return from
available(). |
Calendar getNextCalendar() throws OperationFailedException
Calendar
in this list. Calendar
in this list. The
hasNext()
method should be used to test that a next
Calendar
is available before calling this
method.IllegalStateException
- no more elements available in
this listOperationFailedException
- unable to complete requestmandatory
- This method must be implemented. Calendar[] getNextCalendars(long n) throws OperationFailedException
Calendar
elements in this list
which must be less than or equal to the return from
available().
n
- the number of Calendar
elements requested
which must be less than or equal to available()
Calendar
elements.
The length of the array is less than or equal to the number
specified.IllegalStateException
- no more elements available in
this listOperationFailedException
- unable to complete requestmandatory
- This method must be implemented.