public class NodeTypeIteratorAdapter extends RangeIteratorDecorator implements NodeTypeIterator
| Modifier and Type | Field and Description |
|---|---|
static NodeTypeIterator |
EMPTY
Static instance of an empty
NodeTypeIterator. |
| Constructor and Description |
|---|
NodeTypeIteratorAdapter(Collection<NodeType> collection)
Creates an iterator for the given collection.
|
NodeTypeIteratorAdapter(Iterator iterator)
Creates an adapter for the given
Iterator. |
NodeTypeIteratorAdapter(RangeIterator iterator)
Creates an adapter for the given
RangeIterator. |
| Modifier and Type | Method and Description |
|---|---|
NodeType |
nextNodeType()
Returns the next node type.
|
getPosition, getSize, hasNext, next, remove, skipclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPosition, getSize, skipforEachRemaining, hasNext, next, removepublic static final NodeTypeIterator EMPTY
NodeTypeIterator.public NodeTypeIteratorAdapter(RangeIterator iterator)
RangeIterator.iterator - iterator of NodeTypespublic NodeTypeIteratorAdapter(Iterator iterator)
Iterator.iterator - iterator of NodeTypespublic NodeTypeIteratorAdapter(Collection<NodeType> collection)
collection - collection of NodeTypespublic NodeType nextNodeType() throws NoSuchElementException
nextNodeType in interface NodeTypeIteratorNoSuchElementException - if there is no next node typeCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.