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(Collection collection)
Creates an iterator for the given collection.
|
NodeIteratorAdapter(Iterator iterator)
Creates an adapter for the given
Iterator . |
NodeIteratorAdapter(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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPosition, getSize, skip
forEachRemaining, hasNext, next, remove
public static final NodeIterator EMPTY
NodeIterator
.public NodeIteratorAdapter(RangeIterator iterator)
RangeIterator
.iterator
- iterator of Node
spublic NodeIteratorAdapter(Iterator iterator)
Iterator
.iterator
- iterator of Node
spublic NodeIteratorAdapter(Iterator iterator, long size)
public NodeIteratorAdapter(Collection collection)
collection
- collection of Node
spublic Node nextNode() throws NoSuchElementException
nextNode
in interface NodeIterator
NoSuchElementException
- if there is no next nodeCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.