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