QJCC homepage

biz.chitec.quarterback.util
Class EDateUtilities.EDateCanonicalRangeIterator

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

private static class EDateUtilities.EDateCanonicalRangeIterator
extends EDateUtilities.EDateRangeIterator

Returns series of time ranges with a certain standard length and canonified start- and enddates. The first returned time range surrounds the start date with start being earlier or equal to the given start date and end to be later then the given 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. Canonification means that the time ranges are what one would "expect" to be. E.g. quarterly time ranges start always on Jan, 1st, Apr, 1st, etc. Generally, the rule is: Monthly ranges are always organized in a way that Jan, 1st is a time range start, weekly ranges are organized such that Monday is a time range start.


Constructor Summary
EDateUtilities.EDateCanonicalRangeIterator(EDate startx, EDate endx, int rangesymbolx)
           
 
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
 

Constructor Detail

EDateUtilities.EDateCanonicalRangeIterator

public EDateUtilities.EDateCanonicalRangeIterator(EDate startx,
                                                  EDate endx,
                                                  int rangesymbolx)
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