public class NodeIteratorAdapter extends RangeIteratorDecorator implements NodeIterator
| Modifier and Type | Field and Description |
|---|---|
static NodeIterator |
EMPTY
Static instance of an empty
NodeIterator. |
| Constructor and Description |
|---|
NodeIteratorAdapter(java.util.Collection collection)
Creates an iterator for the given collection.
|
NodeIteratorAdapter(java.util.Iterator iterator)
Creates an adapter for the given
Iterator. |
NodeIteratorAdapter(java.util.Iterator iterator,
long size) |
NodeIteratorAdapter(RangeIterator iterator)
Creates an adapter for the given
RangeIterator. |
| Modifier and Type | Method and Description |
|---|---|
Node |
nextNode()
Returns the next node.
|
getPosition, getSize, hasNext, next, remove, skipequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPosition, getSize, skippublic static final NodeIterator EMPTY
NodeIterator.public NodeIteratorAdapter(RangeIterator iterator)
RangeIterator.iterator - iterator of Nodespublic NodeIteratorAdapter(java.util.Iterator iterator)
Iterator.iterator - iterator of Nodespublic NodeIteratorAdapter(java.util.Iterator iterator,
long size)
public NodeIteratorAdapter(java.util.Collection collection)
collection - collection of Nodespublic Node nextNode() throws java.util.NoSuchElementException
nextNode in interface NodeIteratorjava.util.NoSuchElementException - if there is no next nodeCopyright © 2010 - 2023 Adobe. All Rights Reserved