org.apache.jackrabbit.commons.iterator
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
Adapter class for turning RangeIterators or Iterators
into EventIterators.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EMPTY
public static final EventIterator EMPTY
- Static instance of an empty
EventIterator.
EventIteratorAdapter
public EventIteratorAdapter(RangeIterator iterator)
- Creates an adapter for the given
RangeIterator.
- Parameters:
iterator - iterator of Events
EventIteratorAdapter
public EventIteratorAdapter(Iterator iterator)
- Creates an adapter for the given
Iterator.
- Parameters:
iterator - iterator of Events.
EventIteratorAdapter
public EventIteratorAdapter(Collection collection)
- Creates an iterator for the given collection.
- Parameters:
collection - collection of Events
nextEvent
public Event nextEvent()
throws NoSuchElementException
- Returns the next event.
- Specified by:
nextEvent in interface EventIterator
- Returns:
- next event
- Throws:
NoSuchElementException - if there is no next event
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.