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, skip
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPosition, getSize, skip
forEachRemaining, hasNext, next, remove
public static final NodeTypeIterator EMPTY
NodeTypeIterator
.public NodeTypeIteratorAdapter(RangeIterator iterator)
RangeIterator
.iterator
- iterator of NodeType
spublic NodeTypeIteratorAdapter(Iterator iterator)
Iterator
.iterator
- iterator of NodeType
spublic NodeTypeIteratorAdapter(Collection<NodeType> collection)
collection
- collection of NodeType
spublic NodeType nextNodeType() throws NoSuchElementException
nextNodeType
in interface NodeTypeIterator
NoSuchElementException
- if there is no next node typeCopyright © 2004–2023 The Apache Software Foundation. All rights reserved.