Interface RepositoryBatchFormList
- All Superinterfaces:
AutoCloseable, Closeable, OsidList, OsidList
Like all OsidLists , RepositoryBatchFormList provides a
means for accessing RepositoryBatchForm elements sequentially
either one at a time or many at a time. Examples:
while (rbfl.hasNext()) {
RepositoryBatchForm form = rbfl.getNextRepositoryBatchForm();
}
or
while (rbfl.hasNext()) {
RepositoryBatchForm[] forms = rbfl.getNextRepositoryBatchForms(rbfl.available());
}
-
Method Summary
Modifier and TypeMethodDescriptionGets the nextRepositoryBatchFormin this list.getNextRepositoryBatchForms(long n) Gets the next set ofRepositoryBatchFormelements in this list.
-
Method Details
-
getNextRepositoryBatchForm
Gets the nextRepositoryBatchFormin this list.- Returns:
- the next
RepositoryBatchFormin this list. ThehasNext()method should be used to test that a nextRepositoryBatchFormis available before calling this method. - Throws:
IllegalStateException- no more elements available in this listOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getNextRepositoryBatchForms
Gets the next set ofRepositoryBatchFormelements in this list. The specified amount must be less than or equal to the return fromavailable().- Parameters:
n- the number ofRepositoryBatchFormelements requested which must be less than or equal toavailable()- Returns:
- an array of
RepositoryBatchFormelements. The length of the array is less than or equal to the number specified. - Throws:
IllegalStateException- no more elements available in this listOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-