/src/main/java/net/finmath/modelling/productfactory/ProductFactoryCascade.java
super ( ) ; this.factories = new ArrayList<> ( ) ;
private final ArrayList<ProductFactory<? extends T>> factories; public ProductFactoryCascade() { super(); factories = new ArrayList<>(0); } public ProductFactoryCascade(final List<ProductFactory<? extends T>> factories) { <extra_id_0> this.factories.addAll(factories); } public ProductFactoryCascade<T> addFactoryBefore(final ProductFactory<? extends T> factory) { final ArrayList<ProductFactory<? extends T>> factories = new ArrayList<>(this.factories.size()+1); factories.addAll(this.factories); factories.add(0, factory);