org.apache.jackrabbit.rmi.iterator
Class ArrayEventIterator

java.lang.Object
  extended by org.apache.jackrabbit.rmi.iterator.ArrayIterator
      extended by org.apache.jackrabbit.rmi.iterator.ArrayEventIterator
All Implemented Interfaces:
Iterator, javax.jcr.observation.EventIterator, javax.jcr.RangeIterator

public class ArrayEventIterator
extends ArrayIterator
implements javax.jcr.observation.EventIterator

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


Constructor Summary
ArrayEventIterator(javax.jcr.observation.Event[] nodes)
          Creates an iterator for the given array of events.
 
Method Summary
 javax.jcr.observation.Event nextEvent()
          
 
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

ArrayEventIterator

public ArrayEventIterator(javax.jcr.observation.Event[] nodes)
Creates an iterator for the given array of events.

Parameters:
nodes - the nodes to iterate
Method Detail

nextEvent

public javax.jcr.observation.Event nextEvent()

Specified by:
nextEvent in interface javax.jcr.observation.EventIterator


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.