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 boolean
hasNext()
Has the iterator not reached the end date yet?java.util.Calendar
next()
Returns the next calendar in the iterationvoid
remove()
Always throws UnsupportedOperationException.
-
-
-
Method Detail
-
hasNext
public boolean hasNext()
Has the iterator not reached the end date yet?- Specified by:
hasNext
in interfacejava.util.Iterator<java.util.Calendar>
- Returns:
true
if the iterator has yet to reach the end date
-
next
public java.util.Calendar next()
Returns the next calendar in the iteration- Specified by:
next
in interfacejava.util.Iterator<java.util.Calendar>
- Returns:
- Object calendar for the next date
-
remove
public void remove()
Always throws UnsupportedOperationException.- Specified by:
remove
in interfacejava.util.Iterator<java.util.Calendar>
- Throws:
java.lang.UnsupportedOperationException
- Always thrown.- See Also:
Iterator.remove()
-
-