Interface JournalEntryPeerList
- All Superinterfaces:
AutoCloseable, Closeable, OsidList, OsidList
Like all OsidLists , JournalEntryPeerList provides a
means for accessing JournalEntryPeer elements sequentially either
one at a time or many at a time. Examples:
while (jepl.hasNext()) {
JournalEntryPeer peer = jepl.getNextJournalEntryPeer();
}
or
while (jepl.hasNext()) {
JournalEntryPeer[] peers = jepl.getNextJournalEntryPeers(jepl.available());
}
-
Method Summary
Modifier and TypeMethodDescriptionGets the nextJournalEntryPeerin this list.getNextJournalEntryPeers(long n) Gets the next set ofJournalEntryPeerelements in this list.
-
Method Details
-
getNextJournalEntryPeer
Gets the nextJournalEntryPeerin this list.- Returns:
- the next
JournalEntryPeerin this list. ThehasNext()method should be used to test that a nextJournalEntryPeeris 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.
-
getNextJournalEntryPeers
Gets the next set ofJournalEntryPeerelements in this list. The specified amount must be less than or equal to the return fromavailable().- Parameters:
n- the number ofJournalEntryPeerelements requested which must be less than or equal toavailable()- Returns:
- an array of
JournalEntryPeerelements. 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.
-