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