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