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