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