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