Class EventIteratorAdapter
- java.lang.Object
-
- org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
-
- org.apache.jackrabbit.commons.iterator.EventIteratorAdapter
-
- All Implemented Interfaces:
Iterator
,EventIterator
,RangeIterator
public class EventIteratorAdapter extends RangeIteratorDecorator implements EventIterator
-
-
Constructor Summary
Constructors Constructor Description EventIteratorAdapter(Collection collection)
Creates an iterator for the given collection.EventIteratorAdapter(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 java.util.Iterator
forEachRemaining, hasNext, next, remove
-
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(Iterator iterator)
Creates an adapter for the givenIterator
.- Parameters:
iterator
- iterator ofEvent
s.
-
EventIteratorAdapter
public EventIteratorAdapter(Collection collection)
Creates an iterator for the given collection.- Parameters:
collection
- collection ofEvent
s
-
-
Method Detail
-
nextEvent
public Event nextEvent() throws NoSuchElementException
Returns the next event.- Specified by:
nextEvent
in interfaceEventIterator
- Returns:
- next event
- Throws:
NoSuchElementException
- if there is no next event
-
-