net.objectlab.kit.datecalc.jdk
Class DatePeriodCountCalculator

Package class diagram package DatePeriodCountCalculator
java.lang.Object
  extended by net.objectlab.kit.datecalc.jdk.DatePeriodCountCalculator
All Implemented Interfaces:
PeriodCountCalculator<Date>

public class DatePeriodCountCalculator
extends Object
implements PeriodCountCalculator<Date>

Jdk Date based implementation of the PeriodCountCalculator

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

Field Summary
 
Fields inherited from interface net.objectlab.kit.datecalc.common.PeriodCountCalculator
MONTH_30_DAYS, MONTH_31_DAYS, MONTHS_IN_YEAR, YEAR_360, YEAR_360_0, YEAR_365_0
 
Constructor Summary
DatePeriodCountCalculator()
           
 
Method Summary
 int dayDiff(Date start, Date end, PeriodCountBasis basis)
           
 double monthDiff(Date start, Date end, PeriodCountBasis basis)
           
 double yearDiff(Date start, Date end, PeriodCountBasis basis)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DatePeriodCountCalculator

public DatePeriodCountCalculator()
Method Detail

dayDiff

public int dayDiff(Date start,
                   Date end,
                   PeriodCountBasis basis)
Specified by:
dayDiff in interface PeriodCountCalculator<Date>

monthDiff

public double monthDiff(Date start,
                        Date end,
                        PeriodCountBasis basis)
Specified by:
monthDiff in interface PeriodCountCalculator<Date>

yearDiff

public double yearDiff(Date start,
                       Date end,
                       PeriodCountBasis basis)
Specified by:
yearDiff in interface PeriodCountCalculator<Date>


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