public interface IMolecularFormulaSet extends ICDKObject
Examples:
[C5H5]-
C6H6
12C513CH6
Modifier and Type | Method and Description |
---|---|
void |
add(IMolecularFormulaSet formulaSet)
Adds all molecularFormulas in the MolecularFormulaSet to this chemObject.
|
void |
addMolecularFormula(IMolecularFormula formula)
Adds an IMolecularFormula to this chemObject.
|
Object |
clone()
Clones this IMolecularFormulaSet object and its content.
|
boolean |
contains(IMolecularFormula formula)
True, if the IMolecularFormulaSet contains the given IMolecularFormula object.
|
IMolecularFormula |
getMolecularFormula(int position)
Returns the IMolecularFormula at position
number in the
chemObject. |
Iterable<IMolecularFormula> |
molecularFormulas()
Returns the array of IMolecularFormula of this chemObject.
|
void |
removeAllMolecularFormulas()
Removes all IMolecularFormula of this IMolecularFormulaSet.
|
void |
removeMolecularFormula(IMolecularFormula formula)
Removes the given IMolecularFormula from the IMolecularFormulaSet.
|
void |
removeMolecularFormula(int position)
Removes the IMolecularFormula at the given position from the IMolecularFormulaSet.
|
int |
size()
Returns the number of MolecularFormulas in this IMolecularFormulaSet.
|
getBuilder
void add(IMolecularFormulaSet formulaSet)
formulaSet
- The MolecularFormulaSetvoid addMolecularFormula(IMolecularFormula formula)
formula
- The IMolecularFormula to be added to this chemObjectIMolecularFormula getMolecularFormula(int position)
number
in the
chemObject.position
- The position of the MolecularFormula to be returned.number
.Iterable<IMolecularFormula> molecularFormulas()
addMolecularFormula(IMolecularFormula)
int size()
boolean contains(IMolecularFormula formula)
formula
- The IMolecularFormula this IMolecularFormulaSet is searched forvoid removeMolecularFormula(IMolecularFormula formula)
formula
- The IMolecularFormula to be removedvoid removeMolecularFormula(int position)
position
- The position of the IMolecularFormula to be removed.void removeAllMolecularFormulas()
Object clone() throws CloneNotSupportedException
CloneNotSupportedException
Copyright © 2021. All rights reserved.