org.alfresco.jcr.version
Class VersionListIterator

java.lang.Object
  extended by org.alfresco.jcr.util.AbstractRangeIterator
      extended by org.alfresco.jcr.version.VersionListIterator
All Implemented Interfaces:
java.util.Iterator, javax.jcr.RangeIterator, javax.jcr.version.VersionIterator

public class VersionListIterator
extends AbstractRangeIterator
implements javax.jcr.version.VersionIterator

Alfresco implementation of a Property Iterator


Constructor Summary
VersionListIterator(VersionHistoryImpl versionHistory, java.util.List versions)
          Construct
 
Method Summary
 long getSize()
           
 java.lang.Object next()
           
 javax.jcr.version.Version nextVersion()
           
 
Methods inherited from class org.alfresco.jcr.util.AbstractRangeIterator
getPosition, hasNext, remove, skip, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jcr.RangeIterator
getPosition, skip
 
Methods inherited from interface java.util.Iterator
hasNext, remove
 

Constructor Detail

VersionListIterator

public VersionListIterator(VersionHistoryImpl versionHistory,
                           java.util.List versions)
Construct

Parameters:
context - session context
versions - version list
Method Detail

nextVersion

public javax.jcr.version.Version nextVersion()
Specified by:
nextVersion in interface javax.jcr.version.VersionIterator

getSize

public long getSize()
Specified by:
getSize in interface javax.jcr.RangeIterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.