com.topologi.diffx.sequence
Class EventSequence.EventIterator

java.lang.Object
  extended by com.topologi.diffx.sequence.EventSequence.EventIterator
All Implemented Interfaces:
Iterator<DiffXEvent>
Enclosing class:
EventSequence

public final class EventSequence.EventIterator
extends Object
implements Iterator<DiffXEvent>

An iterator over the event elements in the sequences.

Version:
6 December 2004
Author:
Christophe Lauret

Method Summary
 boolean hasNext()
          
 DiffXEvent next()
          
 DiffXEvent nextEvent()
          Returns the next event.
 void remove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasNext

public boolean hasNext()

Specified by:
hasNext in interface Iterator<DiffXEvent>

next

public DiffXEvent next()

Specified by:
next in interface Iterator<DiffXEvent>

nextEvent

public DiffXEvent nextEvent()
                     throws NoSuchElementException
Returns the next event.

Returns:
the next element in the iteration.
Throws:
NoSuchElementException - iteration has no more event elements.
See Also:
Iterator.next()

remove

public void remove()
Specified by:
remove in interface Iterator<DiffXEvent>
See Also:
Iterator.remove()