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