|
JMSLTM Numerical Library 6.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface BasisPart
Component of DayCountBasis
. The day count basis consists of a
month basis and a yearly basis. Each of these components implements this
interface.
DayCountBasis
Method Summary | |
---|---|
int |
daysBetween(GregorianCalendar date1,
GregorianCalendar date2)
Returns the number of days from date1 to date2 . |
double |
daysInPeriod(GregorianCalendar date,
int frequency)
Returns the number of days in a coupon period. |
int |
getDaysInYear(GregorianCalendar date)
Returns the number of days in the year. |
Method Detail |
---|
int daysBetween(GregorianCalendar date1, GregorianCalendar date2)
date1
to date2
.
date1
- a GregorianCalendar
which specifies the initial
datedate2
- a GregorianCalendar
which specifies the final
date
int
indicating the number of days from
date1
to date2
.double daysInPeriod(GregorianCalendar date, int frequency)
date
- a GregorianCalendar
which specifies the final
date of the coupon periodfrequency
- an int
containing the number of coupon
periods per year. This is typically 1, 2 or 4.
int
which specifies the number of days in the
coupon periodint getDaysInYear(GregorianCalendar date)
date
- a GregorianCalendar
date.
int
which specifies the number of days in the
year
|
JMSLTM Numerical Library 6.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |