net.objectlab.kit.datecalc.joda
Class YearMonthDayModifiedPreceedingHandler

Package class diagram package YearMonthDayModifiedPreceedingHandler
java.lang.Object
  extended by net.objectlab.kit.datecalc.joda.YearMonthDayModifiedFollowingHandler
      extended by net.objectlab.kit.datecalc.joda.YearMonthDayModifiedPreceedingHandler
All Implemented Interfaces:
HolidayHandler<YearMonthDay>

public class YearMonthDayModifiedPreceedingHandler
extends YearMonthDayModifiedFollowingHandler

A modified preceding handler will move the date backward if it falls on a non working day BUT, if the new date falls into another month, it will revert to moving forward until it finds a working day.

Version:
$Revision: 263 $ $Date: 2008-05-05 12:37:50 -0400 (Mon, 05 May 2008) $
Author:
Benoit Xhenseval, $LastChangedBy: benoitx $

Constructor Summary
YearMonthDayModifiedPreceedingHandler()
           
 
Method Summary
 String getType()
          Give the type name for this algorithm.
 YearMonthDay moveCurrentDate(DateCalculator<YearMonthDay> 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 net.objectlab.kit.datecalc.joda.YearMonthDayModifiedFollowingHandler
move
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YearMonthDayModifiedPreceedingHandler

public YearMonthDayModifiedPreceedingHandler()
Method Detail

moveCurrentDate

public YearMonthDay moveCurrentDate(DateCalculator<YearMonthDay> 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<YearMonthDay>
Overrides:
moveCurrentDate in class YearMonthDayModifiedFollowingHandler
Parameters:
calculator - the calculator
Returns:
the date which may have moved.

getType

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

Specified by:
getType in interface HolidayHandler<YearMonthDay>
Overrides:
getType in class YearMonthDayModifiedFollowingHandler
Returns:
algorithm name.


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