net.objectlab.kit.datecalc.jdk
Class CalendarModifiedFollowingHandler

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

public class CalendarModifiedFollowingHandler
extends Object
implements HolidayHandler<Calendar>

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

Version:
$Revision: 300 $ $Date: 2010-03-18 16:09:14 -0400 (Thu, 18 Mar 2010) $
Author:
Marcin Jekot, $LastChangedBy: benoitx $

Constructor Summary
CalendarModifiedFollowingHandler()
           
 
Method Summary
 String getType()
          Give the type name for this algorithm.
protected  Calendar move(DateCalculator<Calendar> calculator, int givenStep)
           
 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 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalendarModifiedFollowingHandler

public CalendarModifiedFollowingHandler()
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>
Parameters:
calculator - the calculator
Returns:
the date which may have moved.

move

protected Calendar move(DateCalculator<Calendar> calculator,
                        int givenStep)

getType

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

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


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