Class EventListenerIteratorAdapter
- java.lang.Object
-
- org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
-
- org.apache.jackrabbit.commons.iterator.EventListenerIteratorAdapter
-
- All Implemented Interfaces:
Iterator
,EventListenerIterator
,RangeIterator
public class EventListenerIteratorAdapter extends RangeIteratorDecorator implements EventListenerIterator
-
-
Field Summary
Fields Modifier and Type Field Description static EventListenerIterator
EMPTY
Static instance of an emptyEventListenerIterator
.
-
Constructor Summary
Constructors Constructor Description EventListenerIteratorAdapter(Collection collection)
Creates an iterator for the given collection.EventListenerIteratorAdapter(Iterator iterator)
Creates an adapter for the givenIterator
.EventListenerIteratorAdapter(RangeIterator iterator)
Creates an adapter for the givenRangeIterator
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EventListener
nextEventListener()
Returns the next event listener.-
Methods inherited from class org.apache.jackrabbit.commons.iterator.RangeIteratorDecorator
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 java.util.Iterator
forEachRemaining, hasNext, next, remove
-
Methods inherited from interface javax.jcr.RangeIterator
getPosition, getSize, skip
-
-
-
-
Field Detail
-
EMPTY
public static final EventListenerIterator EMPTY
Static instance of an emptyEventListenerIterator
.
-
-
Constructor Detail
-
EventListenerIteratorAdapter
public EventListenerIteratorAdapter(RangeIterator iterator)
Creates an adapter for the givenRangeIterator
.- Parameters:
iterator
- iterator ofEventListener
s
-
EventListenerIteratorAdapter
public EventListenerIteratorAdapter(Iterator iterator)
Creates an adapter for the givenIterator
.- Parameters:
iterator
- iterator ofEventListener
s
-
EventListenerIteratorAdapter
public EventListenerIteratorAdapter(Collection collection)
Creates an iterator for the given collection.- Parameters:
collection
- collection ofEventListener
s
-
-
Method Detail
-
nextEventListener
public EventListener nextEventListener()
Returns the next event listener.- Specified by:
nextEventListener
in interfaceEventListenerIterator
- Returns:
- next event listener
- Throws:
NoSuchElementException
- if there is no next event listener
-
-