Documentation of 'org.jfin.date.TypedScheduleGenerator' Java class
TypedScheduleGenerator
org.jfin.date

Class TypedScheduleGenerator<T extends Period>



  • public class TypedScheduleGenerator<T extends Period>
    extends java.lang.Object
    • 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:
        ScheduleException
        java.text.ParseException
      • 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

You see the box below because you did not login.