Class EventIteratorAdapter
- java.lang.Object
-
- org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
-
- org.apache.jackrabbit.commons.iterator.EventIteratorAdapter
-
- All Implemented Interfaces:
java.util.Iterator
,EventIterator
,RangeIterator
public class EventIteratorAdapter extends RangeIteratorDecorator implements EventIterator
-
-
Constructor Summary
Constructors Constructor Description EventIteratorAdapter(java.util.Collection collection)
Creates an iterator for the given collection.EventIteratorAdapter(java.util.Iterator iterator)
Creates an adapter for the givenIterator
.EventIteratorAdapter(EventIterator iterator)
Creates an adapter for the givenRangeIterator
.EventIteratorAdapter(RangeIterator iterator)
Creates an adapter for the givenRangeIterator
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Event
nextEvent()
Returns the next event.-
Methods inherited from class org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
getPosition, getSize, hasNext, next, remove, skip
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.jcr.RangeIterator
getPosition, getSize, skip
-
-
-
-
Constructor Detail
-
EventIteratorAdapter
public EventIteratorAdapter(EventIterator iterator)
Creates an adapter for the givenRangeIterator
.- Parameters:
iterator
- iterator ofEvent
s
-
EventIteratorAdapter
public EventIteratorAdapter(RangeIterator iterator)
Creates an adapter for the givenRangeIterator
.- Parameters:
iterator
- iterator ofEvent
s
-
EventIteratorAdapter
public EventIteratorAdapter(java.util.Iterator iterator)
Creates an adapter for the givenIterator
.- Parameters:
iterator
- iterator ofEvent
s.
-
EventIteratorAdapter
public EventIteratorAdapter(java.util.Collection collection)
Creates an iterator for the given collection.- Parameters:
collection
- collection ofEvent
s
-
-
Method Detail
-
nextEvent
public Event nextEvent() throws java.util.NoSuchElementException
Returns the next event.- Specified by:
nextEvent
in interfaceEventIterator
- Returns:
- next event
- Throws:
java.util.NoSuchElementException
- if there is no next event
-
-