/src/main/java/net/finmath/montecarlo/interestrate/products/Portfolio.java
super( currency) ;super( product.getCurrency( ) ) ;
super ( product.getCurrency ( ) ) ;
import net.finmath.stochastic.RandomVariable; public class Portfolio extends AbstractProductComponent { private static final long serialVersionUID = -1360506093081238482L; private final AbstractTermStructureMonteCarloProduct[] products; private final double[] weights; public Portfolio(final AbstractTermStructureMonteCarloProduct product, final double weight) { <extra_id_0> products = new AbstractTermStructureMonteCarloProduct[] { product }; weights = new double[] { weight }; } public Portfolio(final AbstractTermStructureMonteCarloProduct[] products, final double[] weights) { super(); final String currency = products[0].getCurrency();