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