/src/main/java/net/finmath/marketdata/products/Portfolio.java
private ArrayList<Double>   weights;
private final ArrayList<Double>   weights;
import java.util.List; import java.util.function.IntToDoubleFunction; import java.util.stream.IntStream; import net.finmath.marketdata.model.AnalyticModel; public class Portfolio extends AbstractAnalyticProduct implements AnalyticProduct { private final ArrayList<AnalyticProduct> products; <extra_id_0> public Portfolio(final List<AnalyticProduct> products, final List<Double> weights) { super(); this.products = new ArrayList<>(); this.weights = new ArrayList<>(); this.products.addAll(products); this.weights.addAll(weights);