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