QJCC homepage

biz.chitec.quarterback.util
Class EDateUtilities.EDateRangeIterator

java.lang.Object
  extended bybiz.chitec.quarterback.util.EDateUtilities.EDateRangeIterator
All Implemented Interfaces:
java.util.Iterator
Direct Known Subclasses:
EDateUtilities.EDateCanonicalRangeIterator
Enclosing class:
EDateUtilities

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

Returns series of time ranges with a certain standard length. The first returned time range starts with the start date. The last timerange ends with or surrounds the end date, with start being earlier than the given end date and the time range's end being later than or equal to the given end date.


Field Summary
private  EDate currentend
           
private  EDate currentstart
           
private  EDate finalend
           
private  int rangesymbol
           
 
Constructor Summary
  EDateUtilities.EDateRangeIterator(EDate startx, EDate endx, int rangesymbolx)
           
protected EDateUtilities.EDateRangeIterator(EDate startx, EDate endx, int rangesymbolx, boolean canonifystart)
           
 
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

currentstart

private EDate currentstart

finalend

private EDate finalend

currentend

private EDate currentend

rangesymbol

private int rangesymbol
Constructor Detail

EDateUtilities.EDateRangeIterator

public EDateUtilities.EDateRangeIterator(EDate startx,
                                         EDate endx,
                                         int rangesymbolx)

EDateUtilities.EDateRangeIterator

protected EDateUtilities.EDateRangeIterator(EDate startx,
                                            EDate endx,
                                            int rangesymbolx,
                                            boolean canonifystart)
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