Interface SpeedZoneEnablerList
- All Superinterfaces:
AutoCloseable, Closeable, OsidList, OsidList
Like all OsidLists , SpeedZoneEnablerList provides a
means for accessing SpeedZoneEnabler elements sequentially either
one at a time or many at a time. Examples:
while (szel.hasNext()) {
SpeedZoneEnabler enabler = szel.getNextSpeedZoneEnabler();
}
or
while (szel.hasNext()) {
SpeedZoneEnabler[] enablers = szel.getNextSpeedZoneEnablers(szel.available());
}
-
Method Summary
Modifier and TypeMethodDescriptionGets the nextSpeedZoneEnablerin this list.getNextSpeedZoneEnablers(long n) Gets the next set ofSpeedZoneEnablerelements in this list.
-
Method Details
-
getNextSpeedZoneEnabler
Gets the nextSpeedZoneEnablerin this list.- Returns:
- the next
SpeedZoneEnablerin this list. ThehasNext()method should be used to test that a nextSpeedZoneEnableris 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.
-
getNextSpeedZoneEnablers
Gets the next set ofSpeedZoneEnablerelements in this list. The specified amount must be less than or equal to the return fromavailable().- Parameters:
n- the number ofSpeedZoneEnablerelements requested which must be less than or equal toavailable()- Returns:
- an array of
SpeedZoneEnablerelements. 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.
-