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