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