/src/main/java/net/finmath/modelling/productfactory/ProductFactoryCascade.java
} return new ProductFactoryCascade<>( factories) ;
return new ProductFactoryCascade<> ( factories ) ; }
return new ProductFactoryCascade<>(factories); } public ProductFactoryCascade<T> addFactoryAfter(final ProductFactory<? extends T> factory) { final ArrayList<ProductFactory<? extends T>> factories = new ArrayList<>(this.factories.size()+1); factories.addAll(this.factories); factories.add(factory); <extra_id_0> @Override public DescribedProduct<? extends T> getProductFromDescriptor(final ProductDescriptor productDescriptor) { DescribedProduct<? extends T> product = null; for(final ProductFactory<? extends T> factory : factories) { try { product = factory.getProductFromDescriptor(productDescriptor);