public class NodeTypeIteratorAdapter extends RangeIteratorDecorator
| 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(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, skippublic static final NodeTypeIterator EMPTY
NodeTypeIterator.public NodeTypeIteratorAdapter(RangeIterator iterator)
RangeIterator.iterator - iterator of NodeTypespublic NodeTypeIteratorAdapter(Collection<NodeType> collection)
collection - collection of NodeTypespublic NodeType nextNodeType()
throws NoSuchElementException
NoSuchElementException - if there is no next node type"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"