/src/main/java/net/finmath/time/ScheduleGenerator.java
periods.add( 0, new Period( periodStartDateUnadjusted, paymentDate, periodStartDate, periodEndDate) ) ;
periods.add ( 0, new Period ( fixingDate, paymentDate, periodStartDate, periodEndDate ) ) ;
final LocalDate periodStartDate = businessdayCalendar.getAdjustedDate(periodStartDateUnadjusted, dateRollConvention); if(periodStartDate.compareTo(periodEndDate) == 0) { continue; } final LocalDate fixingDate = businessdayCalendar.getRolledDate(periodStartDate, fixingOffsetDays); final LocalDate paymentDate = businessdayCalendar.getRolledDate(periodEndDate, paymentOffsetDays); <extra_id_0> periodEndDate = periodStartDate; periodEndDateUnadjusted = periodStartDateUnadjusted; } } return new ScheduleFromPeriods(referenceDate, periods, daycountConventionObject); }