Interface IMolecularFormulaSet

    • Method Detail

      • add

        void add​(IMolecularFormulaSet formulaSet)
        Adds all molecularFormulas in the MolecularFormulaSet to this chemObject.
        Parameters:
        formulaSet - The MolecularFormulaSet
      • addMolecularFormula

        void addMolecularFormula​(IMolecularFormula formula)
        Adds an IMolecularFormula to this chemObject.
        Parameters:
        formula - The IMolecularFormula to be added to this chemObject
      • getMolecularFormula

        IMolecularFormula getMolecularFormula​(int position)
        Returns the IMolecularFormula at position number in the chemObject.
        Parameters:
        position - The position of the MolecularFormula to be returned.
        Returns:
        The IMolecularFormula at position number .
      • size

        int size()
        Returns the number of MolecularFormulas in this IMolecularFormulaSet.
        Returns:
        The number of MolecularFormulas in this IMolecularFormulaSet
      • contains

        boolean contains​(IMolecularFormula formula)
        True, if the IMolecularFormulaSet contains the given IMolecularFormula object.
        Parameters:
        formula - The IMolecularFormula this IMolecularFormulaSet is searched for
        Returns:
        True, if the IMolecularFormulaSet contains the given formula object
      • removeMolecularFormula

        void removeMolecularFormula​(IMolecularFormula formula)
        Removes the given IMolecularFormula from the IMolecularFormulaSet.
        Parameters:
        formula - The IMolecularFormula to be removed
      • removeMolecularFormula

        void removeMolecularFormula​(int position)
        Removes the IMolecularFormula at the given position from the IMolecularFormulaSet.
        Parameters:
        position - The position of the IMolecularFormula to be removed.
      • removeAllMolecularFormulas

        void removeAllMolecularFormulas()
        Removes all IMolecularFormula of this IMolecularFormulaSet.