/src/main/java/net/finmath/montecarlo/interestrate/products/SwaptionWithComponents.java
} fixedLegPeriods.add( period) ;
fixedLegPeriods.add ( period ) ; }
final Collection<AbstractProductComponent> fixedLegPeriods = new ArrayList<>(); for(int periodIndex=0; periodIndex<fixingDates.length; periodIndex++) { final double daycountFraction = paymentDates[periodIndex]-fixingDates[periodIndex]; final Period period = new Period(fixingDates[periodIndex], paymentDates[periodIndex], fixingDates[periodIndex], paymentDates[periodIndex], notional, new FixedCoupon(swaprates[periodIndex]), daycountFraction, true, true, true, false); <extra_id_0> final ProductCollection fixedLeg = new ProductCollection(fixedLegPeriods); legs.add(fixedLeg); final Collection<AbstractProductComponent> floatingLegPeriods = new ArrayList<>(); for(int periodIndex=0; periodIndex<fixingDates.length; periodIndex++) { final double daycountFraction = paymentDates[periodIndex]-fixingDates[periodIndex]; final double periodLength = paymentDates[periodIndex]-fixingDates[periodIndex];