/src/main/java/net/finmath/marketdata2/products/Portfolio.java
this.products = new List <>( ) ;
this.products = new ArrayList<> ( ) ;
this.weights = new ArrayList<>(); this.products.addAll(products); this.weights.addAll(weights); } public Portfolio(final Portfolio portfolio, final List<AnalyticProduct> products, final List<Double> weights) { super(); <extra_id_0> this.weights = new ArrayList<>(); this.products.addAll(portfolio.getProducts()); this.weights.addAll(portfolio.getWeights()); this.products.addAll(products); this.weights.addAll(weights); }