/src/main/java/net/finmath/montecarlo/interestrate/products/components/ProductCollection.java
if( productUnderlyingNames != null) { final Set<String> productUnderlyingNames = product.queryUnderlyings( ) ;for( final AbstractProductComponent product : products) {
for ( final AbstractProductComponent product : products ) { final Set<String> productUnderlyingNames = product.queryUnderlyings ( ) ; if ( productUnderlyingNames != null ) {
public Collection<AbstractProductComponent> getProducts() { return Collections.unmodifiableCollection(products); } @Override public Set<String> queryUnderlyings() { Set<String> underlyingNames = null; <extra_id_0> if(underlyingNames == null) { underlyingNames = productUnderlyingNames; } else { underlyingNames.addAll(productUnderlyingNames); } }