|
From: <be...@us...> - 2006-09-09 22:18:11
|
Revision: 136
http://svn.sourceforge.net/objectlabkit/?rev=136&view=rev
Author: benoitx
Date: 2006-09-09 15:17:41 -0700 (Sat, 09 Sep 2006)
Log Message:
-----------
tidy up,add link to statsvn.
Modified Paths:
--------------
trunk/datecalc-common/src/main/java/net/objectlab/kit/datecalc/common/AbstractDateCalculator.java
trunk/datecalc-common/src/main/java/net/objectlab/kit/datecalc/common/DateCalculator.java
trunk/datecalc-common/src/test/java/net/objectlab/kit/datecalc/common/AbstractDateTestCase.java
trunk/datecalc-joda/src/main/java/net/objectlab/kit/datecalc/joda/JodaExcelDateUtil.java
trunk/datecalc-joda/src/main/java/net/objectlab/kit/datecalc/joda/YearMonthDayKitCalculatorsFactory.java
trunk/src/site/navigation.xml
Modified: trunk/datecalc-common/src/main/java/net/objectlab/kit/datecalc/common/AbstractDateCalculator.java
===================================================================
--- trunk/datecalc-common/src/main/java/net/objectlab/kit/datecalc/common/AbstractDateCalculator.java 2006-09-09 16:31:12 UTC (rev 135)
+++ trunk/datecalc-common/src/main/java/net/objectlab/kit/datecalc/common/AbstractDateCalculator.java 2006-09-09 22:17:41 UTC (rev 136)
@@ -100,7 +100,9 @@
* handler and not count towards the number of days to move.
*
* @param businessDays
- * @param daysToSpot number of days to "spot" days, this can vary from one market to the other.
+ * @param daysToSpot
+ * number of days to "spot" days, this can vary from one market
+ * to the other.
* @return the current businessCalendar (so one can do
* calendar.moveByTenor(StandardTenor.T_2M).getCurrentBusinessDate();)
*/
@@ -108,7 +110,7 @@
if (tenor == null) {
throw new IllegalArgumentException("Tenor cannot be null");
}
-
+
// get to the Spot date first:
moveByDays(daysToSpot);
Modified: trunk/datecalc-common/src/main/java/net/objectlab/kit/datecalc/common/DateCalculator.java
===================================================================
--- trunk/datecalc-common/src/main/java/net/objectlab/kit/datecalc/common/DateCalculator.java 2006-09-09 16:31:12 UTC (rev 135)
+++ trunk/datecalc-common/src/main/java/net/objectlab/kit/datecalc/common/DateCalculator.java 2006-09-09 22:17:41 UTC (rev 136)
@@ -183,13 +183,17 @@
DateCalculator<E> combine(DateCalculator<E> calculator);
/**
- * Move the current date by a given tenor, please note that all tenors are relative to
- * the SPOT day which is a number of days from the current date. This method therefore,
- * calculates the SPOT day first, moves it if it falls on a holiday and then goes to the
- * calculated day according to the Tenor.
+ * Move the current date by a given tenor, please note that all tenors are
+ * relative to the SPOT day which is a number of days from the current date.
+ * This method therefore, calculates the SPOT day first, moves it if it
+ * falls on a holiday and then goes to the calculated day according to the
+ * Tenor.
*
- * @param tenor the Tenor to reach.
- * @param daysToSpot number of days to "spot" days, this can vary from one market to the other.
+ * @param tenor
+ * the Tenor to reach.
+ * @param daysToSpot
+ * number of days to "spot" days, this can vary from one market
+ * to the other.
* @return the current DateCalculator
*/
DateCalculator<E> moveByTenor(final Tenor tenor, final int daysToSpot);
Modified: trunk/datecalc-common/src/test/java/net/objectlab/kit/datecalc/common/AbstractDateTestCase.java
===================================================================
--- trunk/datecalc-common/src/test/java/net/objectlab/kit/datecalc/common/AbstractDateTestCase.java 2006-09-09 16:31:12 UTC (rev 135)
+++ trunk/datecalc-common/src/test/java/net/objectlab/kit/datecalc/common/AbstractDateTestCase.java 2006-09-09 22:17:41 UTC (rev 136)
@@ -54,6 +54,7 @@
/**
* Based on UK Holidays for Aug 2006.
+ *
* @param startDate
* @param tenor
* @param daysToSpot
@@ -61,7 +62,7 @@
* @param holidayHandlerType
*/
protected void checkMoveByTenor(final String startDate, final Tenor tenor, final int daysToSpot, final String expectedDate,
- final String holidayHandlerType) {
+ final String holidayHandlerType) {
final DateCalculator<E> cal = newDateCalculator("bla", holidayHandlerType);
cal.setNonWorkingDays(createUKHolidays());
cal.setStartDate(newDate(startDate));
Modified: trunk/datecalc-joda/src/main/java/net/objectlab/kit/datecalc/joda/JodaExcelDateUtil.java
===================================================================
--- trunk/datecalc-joda/src/main/java/net/objectlab/kit/datecalc/joda/JodaExcelDateUtil.java 2006-09-09 16:31:12 UTC (rev 135)
+++ trunk/datecalc-joda/src/main/java/net/objectlab/kit/datecalc/joda/JodaExcelDateUtil.java 2006-09-09 22:17:41 UTC (rev 136)
@@ -35,7 +35,8 @@
*/
public final class JodaExcelDateUtil {
- private JodaExcelDateUtil() {}
+ private JodaExcelDateUtil() {
+ }
public static LocalDate getLocalDate(final double date, final boolean use1904windowing) {
final Date javaDate = ExcelDateUtil.getJavaDate(date, use1904windowing);
Modified: trunk/datecalc-joda/src/main/java/net/objectlab/kit/datecalc/joda/YearMonthDayKitCalculatorsFactory.java
===================================================================
--- trunk/datecalc-joda/src/main/java/net/objectlab/kit/datecalc/joda/YearMonthDayKitCalculatorsFactory.java 2006-09-09 16:31:12 UTC (rev 135)
+++ trunk/datecalc-joda/src/main/java/net/objectlab/kit/datecalc/joda/YearMonthDayKitCalculatorsFactory.java 2006-09-09 22:17:41 UTC (rev 136)
@@ -17,9 +17,9 @@
import net.objectlab.kit.datecalc.common.AbstractKitCalculatorsFactory;
import net.objectlab.kit.datecalc.common.DateCalculator;
-import net.objectlab.kit.datecalc.common.KitCalculatorsFactory;
import net.objectlab.kit.datecalc.common.HolidayHandlerType;
import net.objectlab.kit.datecalc.common.IMMDateCalculator;
+import net.objectlab.kit.datecalc.common.KitCalculatorsFactory;
import net.objectlab.kit.datecalc.common.PeriodCountCalculator;
import org.joda.time.YearMonthDay;
Modified: trunk/src/site/navigation.xml
===================================================================
--- trunk/src/site/navigation.xml 2006-09-09 16:31:12 UTC (rev 135)
+++ trunk/src/site/navigation.xml 2006-09-09 22:17:41 UTC (rev 136)
@@ -18,6 +18,7 @@
<item name="Holiday Handling" href="algo.html" />
<item name="Tenor Handling" href="tenor.html" />
<item name="JavaDoc" class="newWindow" target="_new" href="apidocs/index.html" />
+ <item name="Stat SVN" class="newWindow" target="_new" href="statsvn/index.html" />
</menu>
<!--
<menu name="Related Projects">
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|