org.apache.jackrabbit.rmi.iterator
Class ArrayVersionIterator

java.lang.Object
  extended byorg.apache.jackrabbit.rmi.iterator.ArrayIterator
      extended byorg.apache.jackrabbit.rmi.iterator.ArrayVersionIterator
All Implemented Interfaces:
Iterator, RangeIterator, VersionIterator

public class ArrayVersionIterator
extends ArrayIterator
implements VersionIterator

Array implementation of the JCR VersionIterator interface. This class is used by the JCR-RMI client adapters to convert version arrays to iterators.

Author:
Felix Meschberger

Constructor Summary
ArrayVersionIterator(Version[] versions)
          Creates an iterator for the given array of nodes.
 
Method Summary
 Version nextVersion()
          
 
Methods inherited from class org.apache.jackrabbit.rmi.iterator.ArrayIterator
getPosition, getSize, hasNext, next, remove, 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, getSize, skip
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Constructor Detail

ArrayVersionIterator

public ArrayVersionIterator(Version[] versions)
Creates an iterator for the given array of nodes.

Parameters:
versions - the versions to iterate
Method Detail

nextVersion

public Version nextVersion()

Specified by:
nextVersion in interface VersionIterator


Copyright © 2004-2005 . All Rights Reserved.