| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | LONG_MONTH_LEN
the length of normal long months i.e. 31 |
| private static final int | |
| private static final int | |
| private static final int | |
| private static final int | SHORT_MONTH_LEN
the length of normal short months i.e. 30 |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| private static double | |
| private static double | basis0(int
assumed to be less than or equal to endDateVal startDateVal, int assumed to be greater than or equal to startDateVal endDateVal)
|
| private static double | basis1(int
assumed to be less than or equal to endDateVal startDateVal, int assumed to be greater than or equal to startDateVal endDateVal)
|
| private static double | basis2(int
assumed to be less than or equal to endDateVal startDateVal, int assumed to be greater than or equal to startDateVal endDateVal)
|
| private static double | basis3(double
assumed to be less than or equal to endDateVal startDateVal, double assumed to be greater than or equal to startDateVal endDateVal)
|
| private static double | basis4(int
assumed to be less than or equal to endDateVal startDateVal, int assumed to be greater than or equal to startDateVal endDateVal)
|
| public static double | |
| private static double | calculateAdjusted(YearFracCalculator.
|
| private static YearFracCalculator. | |
| private static int | Returns: the whole number of days between the two time-stamps. Both time-stamps are assumed to represent 12:00 midnight on the respective day.
|
| private static int | |
| private static boolean | |
| private static boolean | |
| private static boolean | |
| private static boolean | Returns: true if dates both within a leap year, or span a period including Feb 29Assumes dates are no more than 1 year apart. |
| DAYS_PER_LEAP_YEAR | back to summary |
|---|---|
| private static final int DAYS_PER_LEAP_YEAR | |
| DAYS_PER_NORMAL_YEAR | back to summary |
|---|---|
| private static final int DAYS_PER_NORMAL_YEAR | |
| LONG_FEB_LEN | back to summary |
|---|---|
| private static final int LONG_FEB_LEN | |
| LONG_MONTH_LEN | back to summary |
|---|---|
| private static final int LONG_MONTH_LEN the length of normal long months i.e. 31 | |
| MS_PER_DAY | back to summary |
|---|---|
| private static final int MS_PER_DAY | |
| MS_PER_HOUR | back to summary |
|---|---|
| private static final int MS_PER_HOUR | |
| SHORT_FEB_LEN | back to summary |
|---|---|
| private static final int SHORT_FEB_LEN | |
| SHORT_MONTH_LEN | back to summary |
|---|---|
| private static final int SHORT_MONTH_LEN the length of normal short months i.e. 30 | |
| YearFracCalculator | back to summary |
|---|---|
| private YearFracCalculator() | |
| averageYearLength | back to summary |
|---|---|
| private static double averageYearLength(int startYear, int endYear) | |
| basis0 | back to summary |
|---|---|
private static double basis0(int startDateVal, int endDateVal)
| |
| basis1 | back to summary |
|---|---|
private static double basis1(int startDateVal, int endDateVal)
| |
| basis2 | back to summary |
|---|---|
private static double basis2(int startDateVal, int endDateVal)
| |
| basis3 | back to summary |
|---|---|
private static double basis3(double startDateVal, double endDateVal)
| |
| basis4 | back to summary |
|---|---|
private static double basis4(int startDateVal, int endDateVal)
| |
| calculate | back to summary |
|---|---|
| public static double calculate(double pStartDateVal, double pEndDateVal, int basis) throws EvaluationException | |
| calculateAdjusted | back to summary |
|---|---|
| private static double calculateAdjusted(YearFracCalculator. | |
| createDate | back to summary |
|---|---|
| private static YearFracCalculator. | |
| dateDiff | back to summary |
|---|---|
private static int dateDiff(long startDateMS, long endDateMS)
| |
| getLastDayOfMonth | back to summary |
|---|---|
| private static int getLastDayOfMonth(YearFracCalculator. | |
| isGreaterThanOneYear | back to summary |
|---|---|
| private static boolean isGreaterThanOneYear(YearFracCalculator. | |
| isLastDayOfMonth | back to summary |
|---|---|
| private static boolean isLastDayOfMonth(YearFracCalculator. | |
| isLeapYear | back to summary |
|---|---|
| private static boolean isLeapYear(int i) | |
| shouldCountFeb29 | back to summary |
|---|---|
| private static boolean shouldCountFeb29(YearFracCalculator. Assumes dates are no more than 1 year apart.
| |
| Modifier and Type | Field and Description |
|---|---|
| public final int | day
day of month |
| public static final int | |
| public static final int | |
| public final int | month
1-based month |
| public final long | tsMilliseconds
milliseconds since 1970 |
| public final int |
| Access | Constructor and Description |
|---|---|
| public |
| day | back to summary |
|---|---|
| public final int day day of month | |
| FEBRUARY | back to summary |
|---|---|
| public static final int FEBRUARY | |
| JANUARY | back to summary |
|---|---|
| public static final int JANUARY | |
| month | back to summary |
|---|---|
| public final int month 1-based month | |
| tsMilliseconds | back to summary |
|---|---|
| public final long tsMilliseconds milliseconds since 1970 | |
| year | back to summary |
|---|---|
| public final int year | |
| SimpleDate | back to summary |
|---|---|
| public SimpleDate(Calendar cal) | |