changed if-else's to use switch statements with enums, and added static imports for some constants, i think it makes the code look cleaner, whadayathink mr b?
we'll see what qalab has to say about all this ;-)
100 lines of code changed in:
- Added method calculateTenorDates with/without a spot lag to enable calculation of a series of Tenor dates without changing the current business date in the calculator.
- Added method moveByTenor without a spot lag to allow tenor calculation based on the CURRENT date and not the spot lag.
12 lines of code changed in:
[Bug 1575498] Suggested by Paul Hill (thanks). Introduction of HolidayCalendar as a replacement to the simplistic Set<E> for holidays (deprecated).
The HolidayCalendar contains a set of holidays but also 2 boundaries early and late which define the VALID set of holidays.
e.g. last holiday for UK in 2006 is 26 Dec 2006 but that set should be VALID until Dec 31 2006.
Re-organised code to use only immutable Holiday calendars internally.
89 lines of code changed in:
[Bug 1575498] First cut on "Valid Range Calculators". Enable registration of HolidayCalendar in the Factory.
Calculation of default early and late boundaries to be the earliest date and latest date if the calendar does not
have such information.
42 lines of code changed in:
[Bug 1601542]Thanks to Anthony Whitford for spotting the spelling mistake in our enum.
4 lines of code changed in:
Added new handler type ForwardUnlessNegative: a handler that acts like a Forward handler
if the increment is positive otherwise acts like a Backward handler
242 lines of code changed in:
And finally the header Ad.
255 lines of code changed in:
Add middle Ad.
112 lines of code changed in:
Add the footer Ad.
289 lines of code changed in:
javadoc corrections, based on the yDoc warning report.
18 lines of code changed in:
adding keyword substitution to files
34 lines of code changed in:
fixed the problem with the 30/31 days... on to the standardizing the timezone - local vs. UTC
1 lines of code changed in:
fixed the prob with ACT_ACT test failing
2 lines of code changed in:
Use FQN for all @link stuff in javadoc (so that Eclipse does not try to import those classes unduly).
32 lines of code changed in:
Removed unused imports. The weird thing is that Eclipse "Organise Imports" DOES add them back!!! Why?
0 lines of code changed in:
Implemented the JDK moveByMonths (easier than thought) and now only 1 test fails for ACT_ACT. It does not seem to fail for JODA... could it be a TimeZone issue?
3 lines of code changed in:
141 lines of code changed in:
Added more tests for Tenor.
Some .classpath etc where referencing non-existing directories.
31 lines of code changed in:
Added more tests for the Tenor code.
Plus implementation for JODA.
There is NO implementation for JDK and yes, you need to do it, thanks! :-)
More tests to follow for backward and modified preceeding.
27 lines of code changed in:
correction in javadoc
1 lines of code changed in: