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