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