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