Interface RouteProgressList
- All Superinterfaces:
AutoCloseable, Closeable, OsidList, OsidList
Like all OsidLists , RouteProgressList provides a means
for accessing RouteProgress elements sequentially either one at a
time or many at a time. Examples:
while (rpl.hasNext()) {
RouteProgress progress = rpl.getNextRouteProgress();
}
or
while (rpl.hasNext()) {
RouteProgress[] progresses = rpl.getNextRouteProgresses(rpl.available());
}
-
Method Details
-
getNextRouteProgress
Gets the nextRouteProgressin this list.- Returns:
- the next
RouteProgressin this list. ThehasNext()method should be used to test that a nextRouteProgressis available before calling this method. - Throws:
IllegalStateException- no more elements available in this listOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getNextRouteProgresses
Gets the next set ofRouteProgresselements in this list. The specified amount must be less than or equal to the return fromavailable().- Parameters:
n- the number ofRouteProgresselements requested which must be less than or equal toavailable()- Returns:
- an array of
RouteProgresselements. The length of the array is less than or equal to the number specified. - Throws:
IllegalStateException- no more elements available in this listOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-