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