Interface ObjectiveNodeList
- All Superinterfaces:
AutoCloseable, Closeable, OsidList, OsidList
Like all OsidLists , ObjectiveNodeList provides a means
for accessing ObjectiveNode elements sequentially either one at a
time or many at a time. Examples:
while (onl.hasNext()) {
ObjectiveNode node = onl.getNextObjectiveNode();
}
or
while (onl.hasNext()) {
ObjectiveNode[] nodes = onl.getNextObjectiveNodes(onl.available());
}
-
Method Summary
Modifier and TypeMethodDescriptionGets the nextObjectiveNodein this list.getNextObjectiveNodes(long n) Gets the next set ofObjectiveNodeelements in this list which must be less than or equal to the number returned fromavailable().
-
Method Details
-
getNextObjectiveNode
Gets the nextObjectiveNodein this list.- Returns:
- the next
ObjectiveNodein this list. ThehasNext()method should be used to test that a nextObjectiveNodeis available before calling this method. - Throws:
IllegalStateException- no more elements available in this listOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getNextObjectiveNodes
Gets the next set ofObjectiveNodeelements in this list which must be less than or equal to the number returned fromavailable().- Parameters:
n- the number ofObjectiveNodeelements requested which should be less than or equal toavailable()- Returns:
- an array of
ObjectiveNodeelements. The length of the array is less than or equal to the number specified. - Throws:
IllegalStateException- no more elements available in this listOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-