Package org.apache.commons.lang3.time
Class DateUtils.DateIterator
- java.lang.Object
-
- org.apache.commons.lang3.time.DateUtils.DateIterator
-
- All Implemented Interfaces:
java.util.Iterator<java.util.Calendar>
- Enclosing class:
- DateUtils
static class DateUtils.DateIterator extends java.lang.Object implements java.util.Iterator<java.util.Calendar>Date iterator.
-
-
Constructor Summary
Constructors Constructor Description DateIterator(java.util.Calendar startFinal, java.util.Calendar endFinal)Constructs a DateIterator that ranges from one date to another.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()Has the iterator not reached the end date yet?java.util.Calendarnext()Returns the next calendar in the iterationvoidremove()Always throws UnsupportedOperationException.
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Has the iterator not reached the end date yet?- Specified by:
hasNextin interfacejava.util.Iterator<java.util.Calendar>- Returns:
trueif the iterator has yet to reach the end date
-
next
public java.util.Calendar next()
Returns the next calendar in the iteration- Specified by:
nextin interfacejava.util.Iterator<java.util.Calendar>- Returns:
- Object calendar for the next date
-
remove
public void remove()
Always throws UnsupportedOperationException.- Specified by:
removein interfacejava.util.Iterator<java.util.Calendar>- Throws:
java.lang.UnsupportedOperationException- Always thrown.- See Also:
Iterator.remove()
-
-