Interface MailboxNodeList
- All Superinterfaces:
AutoCloseable, Closeable, OsidList, OsidList
Like all OsidLists , MailboxNodeList provides a means
for accessing MailboxNode elements sequentially either one at a
time or many at a time. Examples:
while (mnl.hasNext()) {
MailboxNode node = mnl.getNextMailboxNode();
}
or
while (mnl.hasNext()) {
MailboxNode[] nodes = mnl.getNextMailboxNodes(mnl.available());
}
-
Method Summary
Modifier and TypeMethodDescriptionGets the nextMailboxNodein this list.getNextMailboxNodes(long n) Gets the next set ofMailboxNodeelements in this list which must be less than or equal to the return fromavailable().
-
Method Details
-
getNextMailboxNode
Gets the nextMailboxNodein this list.- Returns:
- the next
MailboxNodein this list. ThehasNext()method should be used to test that a nextMailboxNodeis 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.
-
getNextMailboxNodes
Gets the next set ofMailboxNodeelements in this list which must be less than or equal to the return fromavailable().- Parameters:
n- the number ofMailboxNodeelements requested which must be less than or equal toavailable()- Returns:
- an array of
MailboxNodeelements. 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.
-