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