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, skip
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPosition, getSize, skip
public static final NodeIterator EMPTY
NodeIterator
.public NodeIteratorAdapter(RangeIterator iterator)
RangeIterator
.iterator
- iterator of Node
spublic NodeIteratorAdapter(java.util.Iterator iterator)
Iterator
.iterator
- iterator of Node
spublic NodeIteratorAdapter(java.util.Iterator iterator, long size)
public NodeIteratorAdapter(java.util.Collection collection)
collection
- collection of Node
spublic Node nextNode() throws java.util.NoSuchElementException
nextNode
in interface NodeIterator
java.util.NoSuchElementException
- if there is no next nodeCopyright © 2010 - 2020 Adobe. All Rights Reserved