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