QJCC homepage

biz.chitec.quarterback.util
Class EDateUtilities.EDateDayOfWeekIterator

java.lang.Object
  extended bybiz.chitec.quarterback.util.EDateUtilities.EDateDayOfWeekIterator
All Implemented Interfaces:
java.util.Iterator
Enclosing class:
EDateUtilities

private static class EDateUtilities.EDateDayOfWeekIterator
extends java.lang.Object
implements java.util.Iterator

Iterator for dates between start and end which belong to certain weekdays. The weekdays to be included are passed in the array parameter. 0 is Monday.


Field Summary
private  EDate end
           
private  EDate runner
           
private  QuickIntArray weekdays
           
 
Constructor Summary
EDateUtilities.EDateDayOfWeekIterator(EDate start, EDate endx, int[] weekdaysx, boolean withstart)
           
 
Method Summary
 boolean hasNext()
           
 java.lang.Object next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

runner

private EDate runner

weekdays

private QuickIntArray weekdays

end

private EDate end
Constructor Detail

EDateUtilities.EDateDayOfWeekIterator

public EDateUtilities.EDateDayOfWeekIterator(EDate start,
                                             EDate endx,
                                             int[] weekdaysx,
                                             boolean withstart)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator

QJCC homepage