com.e1.mxdublin.evlist
Class EvListIterator

java.lang.Object
  extended by com.e1.mxdublin.evlist.EvListIterator
All Implemented Interfaces:
Iterator<EvAbstractItem>

public class EvListIterator
extends Object
implements Iterator<EvAbstractItem>

Extended iterator for event lists. This iterator will always return events from the event list (if there is event between loop points). If the loop point is reached, new events will be returned by adding the value of the last loop point. The first events returned will be the real ones, but when the loop point is reached, cloned events will be returned.


Method Summary
 EvAbstractItem currentItem()
          Returns the current item.
 boolean hasNext()
          Will always returns true unless there is no events between loops points.
 boolean loopReached()
          Returns true if the loop point is reached.
 EvAbstractItem next()
          Returns the next object.
 EvAbstractItem nextTm()
          Returns the next event with the same time of the current event.
 void remove()
          Not yet supported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

hasNext

public boolean hasNext()
Will always returns true unless there is no events between loops points.

Specified by:
hasNext in interface Iterator<EvAbstractItem>
Returns:
true if there is still events to fetch

loopReached

public boolean loopReached()
Returns true if the loop point is reached.

Returns:
true if the loop point is reached

next

public EvAbstractItem next()
Returns the next object.

Specified by:
next in interface Iterator<EvAbstractItem>
Returns:
the next event

nextTm

public EvAbstractItem nextTm()
Returns the next event with the same time of the current event. Returns null if there is no other events with the same time.

Returns:
the next event with the same time

currentItem

public EvAbstractItem currentItem()
Returns the current item.

Returns:
the current item

remove

public void remove()
Not yet supported.

Specified by:
remove in interface Iterator<EvAbstractItem>