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