net.objectlab.kit.datecalc.joda
Class LocalDateForwardHandler

Package class diagram package LocalDateForwardHandler
java.lang.Object
  extended by net.objectlab.kit.datecalc.joda.LocalDateForwardHandler
All Implemented Interfaces:
HolidayHandler<LocalDate>
Direct Known Subclasses:
LocalDateBackwardHandler

public class LocalDateForwardHandler
extends Object
implements HolidayHandler<LocalDate>

A Forward handler will move the date forward if it falls on a non working day.

Version:
$Revision: 203 $ $Date: 2006-10-11 08:53:07 -0400 (Wed, 11 Oct 2006) $
Author:
Benoit Xhenseval, $LastChangedBy: benoitx $

Constructor Summary
LocalDateForwardHandler()
           
 
Method Summary
 String getType()
          Give the type name for this algorithm.
protected  LocalDate move(DateCalculator<LocalDate> calculator, int step)
           
 LocalDate moveCurrentDate(DateCalculator<LocalDate> calculator)
          If the current date of the give calculator is a non-working day, it will be moved according to the algorithm implemented.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalDateForwardHandler

public LocalDateForwardHandler()
Method Detail

moveCurrentDate

public LocalDate moveCurrentDate(DateCalculator<LocalDate> calculator)
If the current date of the give calculator is a non-working day, it will be moved according to the algorithm implemented.

Specified by:
moveCurrentDate in interface HolidayHandler<LocalDate>
Parameters:
calculator - the calculator
Returns:
the date which may have moved.

move

protected LocalDate move(DateCalculator<LocalDate> calculator,
                         int step)

getType

public String getType()
Give the type name for this algorithm.

Specified by:
getType in interface HolidayHandler<LocalDate>
Returns:
algorithm name.


Copyright © 2006-2010 Appendium - Portfolio Financing Platform. All Rights Reserved.