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