public class NodeIteratorAdapter extends RangeIteratorDecorator implements javax.jcr.NodeIterator
| Modifier and Type | Field and Description |
|---|---|
static javax.jcr.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(javax.jcr.RangeIterator iterator)
Creates an adapter for the given
RangeIterator. |
| Modifier and Type | Method and Description |
|---|---|
javax.jcr.Node |
nextNode()
Returns the next node.
|
getPosition, getSize, hasNext, next, remove, skippublic static final javax.jcr.NodeIterator EMPTY
NodeIterator.public NodeIteratorAdapter(javax.jcr.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 javax.jcr.Node nextNode()
throws NoSuchElementException
nextNode in interface javax.jcr.NodeIteratorNoSuchElementException - if there is no next nodeCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.