public interface CourseOfferingList extends OsidList
Like all OsidLists,
CourseOfferingList
provides a means for accessing CourseOffering
elements
sequentially either one at a time or many at a time. Examples:
while (col.hasNext()) { CourseOffering offering = col.getNextCourseOffering(); }or
while (col.hasNext()) { CourseOffering[] offerings = col.getNextCourseOfferings(col.available()); }
Modifier and Type | Method and Description |
---|---|
CourseOffering |
getNextCourseOffering()
Gets the next
CourseOffering in this list. |
CourseOffering[] |
getNextCourseOfferings(long n)
Gets the next set of
CourseOffering elements in this
list. |
CourseOffering getNextCourseOffering() throws OperationFailedException
CourseOffering
in this list. CourseOffering
in this list. The
hasNext()
method should be used to test that a
next CourseOffering
is available before calling
this method.IllegalStateException
- no more elements available in
this listOperationFailedException
- unable to complete requestmandatory
- This method must be implemented. CourseOffering[] getNextCourseOfferings(long n) throws OperationFailedException
CourseOffering
elements in this
list. The specified amount must be less than or equal to the return
from available().
n
- the number of CourseOffering
elements
requested which must be less than or equal to
available()
CourseOffering
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.