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