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