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