biz.chitec.quarterback.util
Class EDateUtilities.EDateCanonicalRangeIterator
java.lang.Object
biz.chitec.quarterback.util.EDateUtilities.EDateRangeIterator
biz.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EDateUtilities.EDateCanonicalRangeIterator
public EDateUtilities.EDateCanonicalRangeIterator(EDate startx,
EDate endx,
int rangesymbolx)
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