private static boolean validCorrelation ( IMolecularFormula formulaMin , IMolecularFormula formulamax ) { for ( IElement element : MolecularFormulaManipulator . elements ( formulaMin ) ) { if ( ! MolecularFormulaManipulator . containsElement ( formulamax , element ) ) return false ; } return true ; }
In the minimal IMolecularFormula must contain all those IElement found in the minimal IMolecularFormula .