public class YearMonthDayPeriodCountCalculator extends Object implements PeriodCountCalculator<org.joda.time.YearMonthDay>
YearMonthDay based implementation of the
PeriodCountCalculator. It just
delegates to a PeriodCountCalculator<LocalDate>MONTH_30_DAYS, MONTH_31_DAYS, MONTHS_IN_YEAR, YEAR_360, YEAR_360_0, YEAR_365_0| Constructor and Description |
|---|
YearMonthDayPeriodCountCalculator() |
| Modifier and Type | Method and Description |
|---|---|
int |
dayDiff(org.joda.time.YearMonthDay start,
org.joda.time.YearMonthDay end,
PeriodCountBasis basis)
This calculates the number of days between 2 dates, it follows the given
basis which means that the result could vary between the same 2 dates if
the basis is different.
|
double |
monthDiff(org.joda.time.YearMonthDay start,
org.joda.time.YearMonthDay end,
PeriodCountBasis basis)
This calculates the number of months (or fraction) between 2 dates, it
follows the given basis which means that the result could vary between
the same 2 dates if the basis is different.
|
double |
yearDiff(org.joda.time.YearMonthDay start,
org.joda.time.YearMonthDay end,
PeriodCountBasis basis)
This calculates the number of years (or fraction) between 2 dates, it
follows the given basis which means that the result could vary between
the same 2 dates if the basis is different.
|
public int dayDiff(org.joda.time.YearMonthDay start,
org.joda.time.YearMonthDay end,
PeriodCountBasis basis)
PeriodCountCalculatordayDiff in interface PeriodCountCalculator<org.joda.time.YearMonthDay>start - the start dateend - the end datebasis - the basis to usepublic double monthDiff(org.joda.time.YearMonthDay start,
org.joda.time.YearMonthDay end,
PeriodCountBasis basis)
PeriodCountCalculatormonthDiff in interface PeriodCountCalculator<org.joda.time.YearMonthDay>start - the start dateend - the end datebasis - the basis to usepublic double yearDiff(org.joda.time.YearMonthDay start,
org.joda.time.YearMonthDay end,
PeriodCountBasis basis)
PeriodCountCalculatoryearDiff in interface PeriodCountCalculator<org.joda.time.YearMonthDay>start - the start dateend - the end datebasis - the basis to useCopyright © 2006–2014 Appendium - Portfolio Financing Platform. All rights reserved.