Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.commons.lang.time
Class DateUtils.DateIterator  view DateUtils.DateIterator download DateUtils.DateIterator.java

java.lang.Object
  extended byorg.apache.commons.lang.time.DateUtils.DateIterator
All Implemented Interfaces:
java.util.Iterator
Enclosing class:
DateUtils

static class DateUtils.DateIterator
extends java.lang.Object
implements java.util.Iterator

Date iterator.


Field Summary
private  java.util.Calendar endFinal
           
private  java.util.Calendar spot
           
 
Constructor Summary
(package private) DateUtils.DateIterator(java.util.Calendar startFinal, java.util.Calendar endFinal)
          Constructs a DateIterator that ranges from one date to another.
 
Method Summary
 boolean hasNext()
          Has the iterator not reached the end date yet?
 java.lang.Object next()
          Return the next calendar in the iteration
 void remove()
          Always throws UnsupportedOperationException.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

endFinal

private final java.util.Calendar endFinal

spot

private final java.util.Calendar spot
Constructor Detail

DateUtils.DateIterator

DateUtils.DateIterator(java.util.Calendar startFinal,
                       java.util.Calendar endFinal)
Constructs a DateIterator that ranges from one date to another.

Method Detail

hasNext

public boolean hasNext()
Has the iterator not reached the end date yet?

Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Return the next calendar in the iteration

Specified by:
next in interface java.util.Iterator

remove

public void remove()
Always throws UnsupportedOperationException.

Specified by:
remove in interface java.util.Iterator