static class DateUtils.DateIterator
extends java.lang.Object
implements java.util.Iterator<java.util.Calendar>
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.util.Calendar |
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 (inclusive)public boolean hasNext()
hasNext
in interface java.util.Iterator<java.util.Calendar>
true
if the iterator has yet to reach the end datepublic java.util.Calendar next()
next
in interface java.util.Iterator<java.util.Calendar>
public void remove()
remove
in interface java.util.Iterator<java.util.Calendar>
java.lang.UnsupportedOperationException
Iterator.remove()