Interface ProcessConstrainerList
- All Superinterfaces:
AutoCloseable, Closeable, OsidList, OsidList
Like all OsidLists , ProcessConstrainerList provides a
means for accessing ProcessConstrainer elements sequentially
either one at a time or many at a time. Examples:
while (cl.hasNext()) {
ProcessConstrainer constrainer = cl.getNextProcessConstrainer();
}
or
while (cl.hasNext()) {
ProcessConstrainer[] constrainers = cl.getNextProcessConstrainers(cl.available());
}
-
Method Summary
Modifier and TypeMethodDescriptionGets the nextProcessConstrainerin this list.getNextProcessConstrainers(long n) Gets the next set ofProcessConstrainerelements in this list.
-
Method Details
-
getNextProcessConstrainer
Gets the nextProcessConstrainerin this list.- Returns:
- the next
ProcessConstrainerin this list. ThehasNext()method should be used to test that a nextProcessConstraineris 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.
-
getNextProcessConstrainers
Gets the next set ofProcessConstrainerelements in this list. The specified amount must be less than or equal to the return fromavailable().- Parameters:
n- the number ofProcessConstrainerelements requested which must be less than or equal toavailable()- Returns:
- an array of
ProcessConstrainerelements. The length 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.
-