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