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