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