org.jfin.date
Class TypedScheduleGenerator<T extends Period>
- java.lang.Object
-
- org.jfin.date.TypedScheduleGenerator<T>
-
public class TypedScheduleGenerator<T extends Period> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor and Description TypedScheduleGenerator(T prototype)TypedScheduleGenerator(T prototype, int maxPeriods)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static java.util.CalendarcopyAndReset(java.util.Calendar calendar)Copy a calendar and reset it's time to midnight to avoid problems relating to generating schedules around midnight.java.util.List<T>generateSchedule(java.util.Calendar startDate, java.util.Calendar endDate, Frequency frequency, StubType stubType)java.util.List<T>generateSchedule(java.util.Calendar startDate, java.util.Calendar endDate, int frequencyAmount, int frequencyUnit, StubType stubType)java.util.List<T>generateSchedule(java.util.Calendar startDate, java.lang.String maturityString, Frequency frequency, StubType stubType)java.util.List<T>generateSchedule(java.util.Calendar startDate, Tenor tenor, Frequency frequency, StubType stubType)intgetMaxPeriods()TgetPrototype()voidsetMaxPeriods(int maxPeriods)voidsetPrototype(T prototype)
-
-
-
Constructor Detail
-
TypedScheduleGenerator
public TypedScheduleGenerator(T prototype)
-
TypedScheduleGenerator
public TypedScheduleGenerator(T prototype, int maxPeriods)
-
-
Method Detail
-
getPrototype
public T getPrototype()
-
setPrototype
public void setPrototype(T prototype)
-
getMaxPeriods
public int getMaxPeriods()
-
setMaxPeriods
public void setMaxPeriods(int maxPeriods)
-
generateSchedule
public java.util.List<T> generateSchedule(java.util.Calendar startDate, java.lang.String maturityString, Frequency frequency, StubType stubType) throws ScheduleException, java.text.ParseException
- Throws:
ScheduleExceptionjava.text.ParseException
-
generateSchedule
public java.util.List<T> generateSchedule(java.util.Calendar startDate, Tenor tenor, Frequency frequency, StubType stubType) throws ScheduleException
- Throws:
ScheduleException
-
generateSchedule
public java.util.List<T> generateSchedule(java.util.Calendar startDate, java.util.Calendar endDate, Frequency frequency, StubType stubType) throws ScheduleException
- Throws:
ScheduleException
-
generateSchedule
public java.util.List<T> generateSchedule(java.util.Calendar startDate, java.util.Calendar endDate, int frequencyAmount, int frequencyUnit, StubType stubType) throws ScheduleException
- Throws:
ScheduleException
-
copyAndReset
public static java.util.Calendar copyAndReset(java.util.Calendar calendar)
Copy a calendar and reset it's time to midnight to avoid problems relating to generating schedules around midnight.- Parameters:
calendar- The calendar to copy and reset- Returns:
- Calendar the calendar which has been copied and reset
-
-
DataMelt 3.0 © DataMelt by jWork.ORG