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