Class FilteringNodeIterator
- java.lang.Object
-
- org.apache.jackrabbit.commons.iterator.FilteringNodeIterator
-
- All Implemented Interfaces:
Iterator
,NodeIterator
,RangeIterator
public class FilteringNodeIterator extends Object implements NodeIterator
-
-
Field Summary
Fields Modifier and Type Field Description protected NodeIterator
base
protected Predicate
filter
-
Constructor Summary
Constructors Constructor Description FilteringNodeIterator(NodeIterator base, Predicate filter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description long
getPosition()
long
getSize()
boolean
hasNext()
Object
next()
Node
nextNode()
void
remove()
protected Node
seekNext()
void
skip(long skipNum)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
base
protected final NodeIterator base
-
filter
protected final Predicate filter
-
-
Constructor Detail
-
FilteringNodeIterator
public FilteringNodeIterator(NodeIterator base, Predicate filter)
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator
- See Also:
Iterator.hasNext()
-
next
public Object next()
- Specified by:
next
in interfaceIterator
- See Also:
Iterator.next()
-
remove
public void remove()
- Specified by:
remove
in interfaceIterator
- See Also:
Iterator.remove()
-
nextNode
public Node nextNode()
- Specified by:
nextNode
in interfaceNodeIterator
- See Also:
NodeIterator.nextNode()
-
skip
public void skip(long skipNum)
- Specified by:
skip
in interfaceRangeIterator
- See Also:
RangeIterator.skip(long)
-
getSize
public long getSize()
- Specified by:
getSize
in interfaceRangeIterator
- See Also:
RangeIterator.getSize()
-
getPosition
public long getPosition()
- Specified by:
getPosition
in interfaceRangeIterator
- See Also:
RangeIterator.getPosition()
-
seekNext
protected Node seekNext()
- Returns:
-
-