Logo Search packages:      
Sourcecode: cdk version File versions  Download package

org::openscience::cdk::formula::MolecularFormulaSet::MolecularFormulaSet ( IMolecularFormula  formula ) [inline]

Constructs a MolecularFormulaSet with a copy MolecularFormulaSet of another MolecularFormulaSet (A shallow copy, i.e., with the same objects as in the original MolecularFormulaSet).

Parameters:
formulaAn MolecularFormula to copy from
See also:
MolecularFormulaSet()

Definition at line 76 of file MolecularFormulaSet.java.

                                                            {
            components = new ArrayList<IMolecularFormula>();
            components.add(0, formula);
      }

Generated by  Doxygen 1.6.0   Back to index