net.objectlab.kit.datecalc.jdk
Class CalendarModifiedPrecedingHandler

Package class diagram package CalendarModifiedPrecedingHandler
java.lang.Object
  extended by net.objectlab.kit.datecalc.jdk.CalendarModifiedFollowingHandler
      extended by net.objectlab.kit.datecalc.jdk.CalendarModifiedPrecedingHandler
All Implemented Interfaces:
HolidayHandler<Calendar>

public class CalendarModifiedPrecedingHandler
extends CalendarModifiedFollowingHandler

A Jdk Calendar implementation of the HolidayHandler, for the Modified Preceeding algorithm.

Version:
$Revision: 203 $ $Date: 2006-10-11 13:53:07 +0100 (Wed, 11 Oct 2006) $
Author:
Marcin Jekot, $LastChangedBy: benoitx $

Constructor Summary
CalendarModifiedPrecedingHandler()
           
 
Method Summary
 String getType()
          Give the type name for this algorithm.
 Calendar moveCurrentDate(DateCalculator<Calendar> 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.jdk.CalendarModifiedFollowingHandler
move
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarModifiedPrecedingHandler

public CalendarModifiedPrecedingHandler()
Method Detail

moveCurrentDate

public Calendar moveCurrentDate(DateCalculator<Calendar> 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<Calendar>
Overrides:
moveCurrentDate in class CalendarModifiedFollowingHandler
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<Calendar>
Overrides:
getType in class CalendarModifiedFollowingHandler
Returns:
algorithm name.


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