|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.version.VersionIteratorImpl
This Class implements a VersionIterator that iterates over a version graph following the successor nodes. When this iterator is created, it gathers the id's of the versions and returns them when iterating. please note, that a version can be deleted while traversing this iterator and the 'nextVesion' would produce a ConcurrentModificationException.
Constructor Summary | |
VersionIteratorImpl(Session session,
InternalVersion rootVersion)
Creates a new VersionIterator that iterates over the version tree, starting the root node. |
Method Summary | |
long |
getPosition()
|
long |
getSize()
|
boolean |
hasNext()
|
Object |
next()
|
Version |
nextVersion()
|
void |
remove()
|
void |
skip(long skipNum)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public VersionIteratorImpl(Session session, InternalVersion rootVersion)
rootVersion
- Method Detail |
public Version nextVersion()
nextVersion
in interface VersionIterator
public void skip(long skipNum)
skip
in interface RangeIterator
public long getSize()
getSize
in interface RangeIterator
public long getPosition()
getPosition
in interface RangeIterator
public void remove() throws UnsupportedOperationException
remove
in interface Iterator
UnsupportedOperationException
- since this operation is not supportedpublic boolean hasNext()
hasNext
in interface Iterator
public Object next()
next
in interface Iterator
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |