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