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