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