de.jaret.util.date.iterator
Class WeekIterator
java.lang.Object
de.jaret.util.date.iterator.AbstractDateIterator
de.jaret.util.date.iterator.WeekIterator
- All Implemented Interfaces:
- DateIterator
public class WeekIterator
- extends AbstractDateIterator
- implements DateIterator
Implementation of the DateIterator iterating over weeks.
- Version:
- $Id: WeekIterator.java 828 2009-02-08 13:58:21Z kliem $
- Author:
- kliem
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_defaultFormatter
protected IIteratorFormatter _defaultFormatter
- default formatter.
WeekIterator
public WeekIterator()
advanceDate
protected void advanceDate(JaretDate date)
- Advance the given date by the amount necessary.
- Specified by:
advanceDate
in class AbstractDateIterator
- Parameters:
date
- date to be modified
getApproxStepMilliSeconds
public long getApproxStepMilliSeconds()
- Return the approximate step between dates in milli seconds.
- Specified by:
getApproxStepMilliSeconds
in interface DateIterator
- Returns:
- approximate step between iterated dates in milli seconds
correctStartDate
protected JaretDate correctStartDate(JaretDate date)
- Correct the given date to a clean starting position.
- Specified by:
correctStartDate
in class AbstractDateIterator
- Parameters:
date
- start date
- Returns:
- clean starting position
getDefaultFormatter
protected IIteratorFormatter getDefaultFormatter()
- Internal method to retrieve a default formatter.
- Specified by:
getDefaultFormatter
in class AbstractDateIterator
- Returns:
- the default formatter of the iterator
Copyright © 2013. All Rights Reserved.