Class DateUtils.DateIterator

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

static class DateUtils.DateIterator extends Object implements Iterator

Date iterator.

  • Field Details

  • Constructor Details

    • DateIterator

      DateIterator(Calendar startFinal, Calendar endFinal)
      Constructs a DateIterator that ranges from one date to another.
      Parameters:
      startFinal - start date (inclusive)
      endFinal - end date (not inclusive)
  • Method Details

    • hasNext

      public boolean hasNext()
      Has the iterator not reached the end date yet?
      Specified by:
      hasNext in interface Iterator
      Returns:
      true if the iterator has yet to reach the end date
    • next

      public Object next()
      Return the next calendar in the iteration
      Specified by:
      next in interface Iterator
      Returns:
      Object calendar for the next date
    • remove

      public void remove()
      Always throws UnsupportedOperationException.
      Specified by:
      remove in interface Iterator
      Throws:
      UnsupportedOperationException
      See Also: