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