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