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

boolean org::openscience::cdk::formula::MolecularFormulaSet::contains ( IMolecularFormula  formula ) [inline, inherited]

True, if the MolecularFormulaSet contains the given IMolecularFormula object.

Parameters:
formulaThe IMolecularFormula this MolecularFormulaSet is searched for
Returns:
True, if the MolecularFormulaSet contains the given IMolecularFormula object

Implements org::openscience::cdk::interfaces::IMolecularFormulaSet.

Reimplemented in org::openscience::cdk::debug::DebugMolecularFormulaSet.

Definition at line 143 of file MolecularFormulaSet.java.

                                                       {
          return components.contains(formula);
    }

Generated by  Doxygen 1.6.0   Back to index