public class EventIteratorAdapter extends RangeIteratorDecorator implements EventIterator
Constructor and Description |
---|
EventIteratorAdapter(Collection collection)
Creates an iterator for the given collection.
|
EventIteratorAdapter(EventIterator iterator)
Creates an adapter for the given
RangeIterator . |
EventIteratorAdapter(Iterator iterator)
Creates an adapter for the given
Iterator . |
EventIteratorAdapter(RangeIterator iterator)
Creates an adapter for the given
RangeIterator . |
Modifier and Type | Method and Description |
---|---|
Event |
nextEvent()
Returns the next event.
|
getPosition, getSize, hasNext, next, remove, skip
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPosition, getSize, skip
forEachRemaining, hasNext, next, remove
public EventIteratorAdapter(EventIterator iterator)
RangeIterator
.iterator
- iterator of Event
spublic EventIteratorAdapter(RangeIterator iterator)
RangeIterator
.iterator
- iterator of Event
spublic EventIteratorAdapter(Iterator iterator)
Iterator
.iterator
- iterator of Event
s.public EventIteratorAdapter(Collection collection)
collection
- collection of Event
spublic Event nextEvent() throws NoSuchElementException
nextEvent
in interface EventIterator
NoSuchElementException
- if there is no next eventCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.