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
Modifier and TypeMethodDescriptionbooleanhasNext()Tests whether the iterator has more dates before the end date.next()Returns the next calendar in the iteration.voidremove()Always throwsUnsupportedOperationException.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()Tests whether the iterator has more dates before the end date. -
next
Returns the next calendar in the iteration. -
remove
public void remove()Always throwsUnsupportedOperationException.- Specified by:
removein interfaceIterator<Calendar>- Throws:
UnsupportedOperationException- Thrown because this operation is unsupported.- See Also:
-