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