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 RangeIterator
s or Iterator
s
into EventIterator
s.
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 Event
s
EventIteratorAdapter
public EventIteratorAdapter(Iterator iterator)
- Creates an adapter for the given
Iterator
.
- Parameters:
iterator
- iterator of Event
s.
EventIteratorAdapter
public EventIteratorAdapter(Collection collection)
- Creates an iterator for the given collection.
- Parameters:
collection
- collection of Event
s
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-2008 The Apache Software Foundation. All Rights Reserved.