|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.util.IteratorHelper
org.apache.jackrabbit.commons.iterator
package contains a set of more feature rich and type safe
classes for implementing the JCR iterator interfaces
public class IteratorHelper
IteratorHelper is a utility class which
wraps an iterator and implements the various typed iterator
interfaces.
| Field Summary | |
|---|---|
static IteratorHelper |
EMPTY
Deprecated. |
| Constructor Summary | |
|---|---|
IteratorHelper(java.util.Collection c)
Deprecated. Constructs an IteratorHelper which is backed
by a java.util.Collection. |
|
IteratorHelper(java.util.Iterator iter)
Deprecated. Constructs an IteratorHelper which is wrapping
a java.util.Iterator. |
|
| Method Summary | |
|---|---|
long |
getPosition()
Deprecated. |
long |
getSize()
Deprecated. |
boolean |
hasNext()
Deprecated. |
java.lang.Object |
next()
Deprecated. |
Node |
nextNode()
Deprecated. |
NodeType |
nextNodeType()
Deprecated. |
Property |
nextProperty()
Deprecated. |
void |
remove()
Deprecated. |
void |
skip(long skipNum)
Deprecated. |
| 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(java.util.Collection c)
IteratorHelper which is backed
by a java.util.Collection.
c - collection which should be iterated over.public IteratorHelper(java.util.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 RangeIteratorpublic long getSize()
getSize in interface RangeIteratorpublic long getPosition()
getPosition in interface RangeIteratorpublic boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iteratorpublic Node nextNode()
nextNode in interface NodeIteratorpublic Property nextProperty()
nextProperty in interface PropertyIteratorpublic NodeType nextNodeType()
nextNodeType in interface NodeTypeIterator
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||