org.apache.jackrabbit.rmi.iterator
Class ArrayNodeIterator

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

public class ArrayNodeIterator
extends ArrayIterator
implements NodeIterator

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

Author:
Jukka Zitting

Constructor Summary
ArrayNodeIterator(Node[] nodes)
          Creates an iterator for the given array of nodes.
 
Method Summary
 Node nextNode()
          
 
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

ArrayNodeIterator

public ArrayNodeIterator(Node[] nodes)
Creates an iterator for the given array of nodes.

Parameters:
nodes - the nodes to iterate
Method Detail

nextNode

public Node nextNode()

Specified by:
nextNode in interface NodeIterator


Copyright © 2004-2005 . All Rights Reserved.