Interface ConfigurationList
- All Superinterfaces:
AutoCloseable, Closeable, OsidList, OsidList
Like all OsidLists , ConfigurationList provides a means
for accessing Configuration elements sequentially either one at a
time or many at a time. Examples:
while (cl.hasNext()) {
Configuration config = cl.getNextConfiguration();
}
or
while (cl.hasNext()) {
Configuration[] configs = cl.getNextConfigurations(cl.available());
}
-
Method Summary
Modifier and TypeMethodDescriptionGets the nextConfigurationin this list.getNextConfigurations(long n) Gets the next set ofConfigurationobjects in this lis which must be less than or equal to whst is returned fromavailable().
-
Method Details
-
getNextConfiguration
Gets the nextConfigurationin this list.- Returns:
- the next
Configurationin this list. ThehasNext()method should be used to test that a nextConfigurationis 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.
-
getNextConfigurations
Gets the next set ofConfigurationobjects in this lis which must be less than or equal to whst is returned fromavailable().- Parameters:
n- the number ofConfigurationelements requested which should be less than or equal toavailable()- Returns:
- an array of
ConfigurationHelvength 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.
-