com.topologi.diffx.sequence
Class EventSequence.EventIterator

java.lang.Object
  extended bycom.topologi.diffx.sequence.EventSequence.EventIterator
All Implemented Interfaces:
Iterator
Enclosing class:
EventSequence

public final class EventSequence.EventIterator
extends Object
implements Iterator

An iterator over the event elements in the sequences.

Version:
6 December 2004
Author:
Christophe Lauret

Method Summary
 boolean hasNext()
           
 Object 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
See Also:
Iterator.hasNext()

next

public Object next()
Specified by:
next in interface Iterator
See Also:
Iterator.next()

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
See Also:
Iterator.remove()