|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ftlabs.fisa.SettlementDateFactory
public class SettlementDateFactory
This class provides methods for getting a settlement date taking weekend days and holidays into consideration.
| Constructor Summary | |
|---|---|
SettlementDateFactory(HolidaySchedule holidays)
Creates a SettlementDateFactory that utilizes the provided HolidaySchedule to determine if a date is a holiday. |
|
| Method Summary | |
|---|---|
java.util.Date |
getSettlementDate(java.util.Date startDate,
int settlementDays)
Gets a settlement date using the provided starting date. |
java.util.Date |
getSettlementDate(int settlementDays)
Gets a settlement date using today as the start date. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SettlementDateFactory(HolidaySchedule holidays)
HolidaySchedule to determine if a date is a holiday.
holidays - The HolidaySchedule to use for this
SettlementDateFactory.| Method Detail |
|---|
public java.util.Date getSettlementDate(int settlementDays)
settlementDays - The number of business days from today.
public java.util.Date getSettlementDate(java.util.Date startDate,
int settlementDays)
startDate - The date for which the settlement date is calculated.settlementDays - The number of business days from today.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||