com.dlsc.flexgantt.model
Class TimeSpanIterator<T extends ITimeSpan>

java.lang.Object
  extended by com.dlsc.flexgantt.model.TimeSpanIterator<T>
Type Parameters:
T - the element type of the list over which to iterate
All Implemented Interfaces:
java.util.Iterator<T>

public class TimeSpanIterator<T extends ITimeSpan>
extends java.lang.Object
implements java.util.Iterator<T>

An iterator implementation specialized on iterating over a list of ITimeSpan elements.

Since:
1.0
Author:
Dirk Lemmermann

Constructor Summary
TimeSpanIterator(java.util.List<T> timeSpanList, ITimeSpan span)
          Constructs a new time span iterator.
 
Method Summary
 boolean hasNext()
           
 T next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TimeSpanIterator

public TimeSpanIterator(java.util.List<T> timeSpanList,
                        ITimeSpan span)
Constructs a new time span iterator.

Parameters:
timeSpanList - the list of time spans that will iterated over
span - the time span for which to return time spans stored in the list
Since:
1.0
Method Detail

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<T extends ITimeSpan>

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<T extends ITimeSpan>

next

public T next()
Specified by:
next in interface java.util.Iterator<T extends ITimeSpan>