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