Package com.topologi.diffx.sequence
Class EventSequence.EventIterator
java.lang.Object
com.topologi.diffx.sequence.EventSequence.EventIterator
- All Implemented Interfaces:
Iterator<DiffXEvent>
- Enclosing class:
- EventSequence
An iterator over the event elements in the sequences.
- Version:
- 6 December 2004
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateEventIterator(Iterator<DiffXEvent> iterator) Creates a new iterator wrapping the specified list iterator. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
iterator
The wrapped iterator.
-
-
Constructor Details
-
EventIterator
Creates a new iterator wrapping the specified list iterator.- Parameters:
iterator- The iterator to wrap.
-
-
Method Details
-
hasNext
public boolean hasNext()- Specified by:
hasNextin interfaceIterator<DiffXEvent>
-
next
- Specified by:
nextin interfaceIterator<DiffXEvent>
-
nextEvent
Returns the next event.- Returns:
- the next element in the iteration.
- Throws:
NoSuchElementException- iteration has no more event elements.- See Also:
-
remove
public void remove()- Specified by:
removein interfaceIterator<DiffXEvent>- See Also:
-