public class FilteringNodeIterator extends Object implements NodeIterator
| Modifier and Type | Field and Description |
|---|---|
protected NodeIterator |
base |
protected Predicate |
filter |
| Constructor and Description |
|---|
FilteringNodeIterator(NodeIterator base,
Predicate filter) |
| Modifier and Type | Method and Description |
|---|---|
long |
getPosition() |
long |
getSize() |
boolean |
hasNext() |
Object |
next() |
Node |
nextNode() |
void |
remove() |
protected Node |
seekNext() |
void |
skip(long skipNum) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingprotected final NodeIterator base
protected final Predicate filter
public FilteringNodeIterator(NodeIterator base, Predicate filter)
public boolean hasNext()
hasNext in interface IteratorIterator.hasNext()public Object next()
next in interface IteratorIterator.next()public void remove()
remove in interface IteratorIterator.remove()public Node nextNode()
nextNode in interface NodeIteratorNodeIterator.nextNode()public void skip(long skipNum)
skip in interface RangeIteratorRangeIterator.skip(long)public long getSize()
getSize in interface RangeIteratorRangeIterator.getSize()public long getPosition()
getPosition in interface RangeIteratorRangeIterator.getPosition()protected Node seekNext()
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.