net.objectlab.kit.datecalc.joda
Class LocalDateModifiedPrecedingHandler

Package class diagram package LocalDateModifiedPrecedingHandler
java.lang.Object
  extended by net.objectlab.kit.datecalc.joda.LocalDateModifiedFollowingHandler
      extended by net.objectlab.kit.datecalc.joda.LocalDateModifiedPrecedingHandler
All Implemented Interfaces:
HolidayHandler<LocalDate>

public class LocalDateModifiedPrecedingHandler
extends LocalDateModifiedFollowingHandler

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: 203 $ $Date: 2006-10-11 13:53:07 +0100 (Wed, 11 Oct 2006) $
Author:
Benoit Xhenseval, $LastChangedBy: benoitx $

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

Constructor Detail

LocalDateModifiedPrecedingHandler

public LocalDateModifiedPrecedingHandler()
Method Detail

getType

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

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

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>
Overrides:
moveCurrentDate in class LocalDateModifiedFollowingHandler
Parameters:
calculator - the calculator
Returns:
the date which may have moved.


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