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