public class NodeIteratorAdapter extends RangeIteratorDecorator implements NodeIterator
| Modifier and Type | Field and Description | 
|---|---|
| static NodeIterator | EMPTYStatic 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, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPosition, getSize, skipforEachRemaining, hasNext, next, removepublic static final NodeIterator EMPTY
NodeIterator.public NodeIteratorAdapter(RangeIterator iterator)
RangeIterator.iterator - iterator of Nodespublic NodeIteratorAdapter(Iterator iterator)
Iterator.iterator - iterator of Nodespublic NodeIteratorAdapter(Iterator iterator, long size)
public NodeIteratorAdapter(Collection collection)
collection - collection of Nodespublic Node nextNode() throws NoSuchElementException
nextNode in interface NodeIteratorNoSuchElementException - if there is no next nodeCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.