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