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