|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.util.IteratorHelper
IteratorHelper
is a utility class which
wraps an iterator and implements the various typed iterator
interfaces.
Field Summary | |
static IteratorHelper |
EMPTY
|
Constructor Summary | |
IteratorHelper(Collection c)
Constructs an IteratorHelper which is backed
by a java.util.Collection . |
|
IteratorHelper(Iterator iter)
Constructs an IteratorHelper which is wrapping
a java.util.Iterator . |
Method Summary | |
long |
getPosition()
|
long |
getSize()
|
boolean |
hasNext()
|
Object |
next()
|
Node |
nextNode()
|
NodeType |
nextNodeType()
|
Property |
nextProperty()
|
void |
remove()
|
void |
skip(long skipNum)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final IteratorHelper EMPTY
Constructor Detail |
public IteratorHelper(Collection c)
IteratorHelper
which is backed
by a java.util.Collection
.
c
- collection which should be iterated over.public IteratorHelper(Iterator iter)
IteratorHelper
which is wrapping
a java.util.Iterator
.
iter
- iterator which should be wrapped.Method Detail |
public void skip(long skipNum)
skip
in interface RangeIterator
public long getSize()
getSize
in interface RangeIterator
public long getPosition()
getPosition
in interface RangeIterator
public boolean hasNext()
hasNext
in interface Iterator
public Object next()
next
in interface Iterator
public void remove()
remove
in interface Iterator
public Node nextNode()
nextNode
in interface NodeIterator
public Property nextProperty()
nextProperty
in interface PropertyIterator
public NodeType nextNodeType()
nextNodeType
in interface NodeTypeIterator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |