info.magnolia.cms.util
Class ObservationUtil.ListBasedEventIterator

java.lang.Object
  extended by info.magnolia.cms.util.ObservationUtil.ListBasedEventIterator
All Implemented Interfaces:
Iterator, javax.jcr.observation.EventIterator, javax.jcr.RangeIterator
Enclosing class:
ObservationUtil

public static class ObservationUtil.ListBasedEventIterator
extends Object
implements javax.jcr.observation.EventIterator

List based event iterator. Used to collect events in a list which are later on passed to the listener.


Constructor Summary
ObservationUtil.ListBasedEventIterator(List events)
           
 
Method Summary
 long getPosition()
           
 long getSize()
           
 boolean hasNext()
           
 Object next()
           
 javax.jcr.observation.Event nextEvent()
           
 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

ObservationUtil.ListBasedEventIterator

public ObservationUtil.ListBasedEventIterator(List events)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator

next

public Object next()
Specified by:
next in interface Iterator

remove

public void remove()
Specified by:
remove in interface Iterator

nextEvent

public javax.jcr.observation.Event nextEvent()
Specified by:
nextEvent in interface javax.jcr.observation.EventIterator

getPosition

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

getSize

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

skip

public void skip(long skipNum)
Specified by:
skip in interface javax.jcr.RangeIterator


Copyright © 2003-2013 Magnolia International Ltd.. All Rights Reserved.