Package org.apache.commons.lang3.time
Class DateUtils.DateIterator
java.lang.Object
org.apache.commons.lang3.time.DateUtils.DateIterator
- Enclosing class:
- DateUtils
Date iterator.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDateIterator(Calendar startFinal, Calendar endFinal) Constructs a DateIterator that ranges from one date to another. -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Iterator
forEachRemaining
-
Field Details
-
endFinal
-
spot
-
-
Constructor Details
-
DateIterator
Constructs a DateIterator that ranges from one date to another.- Parameters:
startFinal- start date (inclusive)endFinal- end date (inclusive)
-
-
Method Details
-
hasNext
public boolean hasNext()Has the iterator not reached the end date yet? -
next
Returns the next calendar in the iteration -
remove
public void remove()Always throws UnsupportedOperationException.- Specified by:
removein interfaceIterator<Calendar>- Throws:
UnsupportedOperationException- Always thrown.- See Also:
-