net.objectlab.kit.datecalc.joda
Class LocalDatePeriodCountCalculator

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

public class LocalDatePeriodCountCalculator
extends Object
implements PeriodCountCalculator<LocalDate>

Joda LocalDatePeriod based implementation of the PeriodCountCalculator.

Version:
$Revision: 306 $ $Date: 2010-03-19 15:42:44 -0400 (Fri, 19 Mar 2010) $
Author:
Benoit Xhenseval, $LastChangedBy: marchy $

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
LocalDatePeriodCountCalculator()
           
 
Method Summary
 int dayDiff(LocalDate start, LocalDate end, PeriodCountBasis basis)
           
 double monthDiff(LocalDate start, LocalDate end, PeriodCountBasis basis)
           
 double yearDiff(LocalDate start, LocalDate end, PeriodCountBasis basis)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalDatePeriodCountCalculator

public LocalDatePeriodCountCalculator()
Method Detail

dayDiff

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

monthDiff

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

yearDiff

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


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