static class DateUtils.DateIterator
extends java.lang.Object
implements java.util.Iterator
Date iterator.
| Modifier and Type | Field and Description |
|---|---|
private java.util.Calendar |
endFinal |
private java.util.Calendar |
spot |
| Constructor and Description |
|---|
DateIterator(java.util.Calendar startFinal,
java.util.Calendar endFinal)
Constructs a DateIterator that ranges from one date to another.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Has the iterator not reached the end date yet?
|
java.lang.Object |
next()
Return the next calendar in the iteration
|
void |
remove()
Always throws UnsupportedOperationException.
|
private final java.util.Calendar endFinal
private final java.util.Calendar spot
DateIterator(java.util.Calendar startFinal,
java.util.Calendar endFinal)
startFinal - start date (inclusive)endFinal - end date (not inclusive)public boolean hasNext()
hasNext in interface java.util.Iteratortrue if the iterator has yet to reach the end datepublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iteratorjava.lang.UnsupportedOperationExceptionIterator.remove()