public class DebugAdductFormula extends AdductFormula implements IAdductFormula
IAdductFormula.| Constructor and Description |
|---|
DebugAdductFormula() |
DebugAdductFormula(IMolecularFormula formula) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(IMolecularFormulaSet formulaSet)
Adds all molecularFormulas in the AdductFormula to this chemObject.
|
void |
addMolecularFormula(IMolecularFormula formula)
Adds an molecularFormula to this chemObject.
|
boolean |
contains(IIsotope isotope)
True, if the AdductFormula contains the given IIsotope object and not
the instance.
|
boolean |
contains(IMolecularFormula formula)
True, if the AdductFormula contains the given IMolecularFormula object.
|
IChemObjectBuilder |
getBuilder()
Returns a
IChemObjectBuilder for the data classes that extend
this class. |
Integer |
getCharge()
Returns the partial charge of this Adduct.
|
int |
getIsotopeCount()
Checks a set of Nodes for the number of different isotopes in the
adduct formula.
|
int |
getIsotopeCount(IIsotope isotope)
Checks a set of Nodes for the occurrence of the isotope in the
adduct formula from a particular isotope.
|
IMolecularFormula |
getMolecularFormula(int position)
Returns the MolecularFormula at position
number in the
chemObject. |
Iterable<IIsotope> |
isotopes()
Returns an Iterator for looping over all isotopes in this adduct formula.
|
Iterator<IMolecularFormula> |
iterator()
Returns an Iterator for looping over all IMolecularFormula
in this adduct formula.
|
Iterable<IMolecularFormula> |
molecularFormulas()
Returns an Iterable for looping over all IMolecularFormula
in this adduct formula.
|
void |
removeAllMolecularFormulas()
Removes all IMolecularFormula from this chemObject.
|
void |
removeMolecularFormula(IMolecularFormula formula)
Removes an IMolecularFormula from this chemObject.
|
void |
removeMolecularFormula(int position)
Removes an MolecularFormula from this chemObject.
|
void |
setCharge(Integer charge)
No use this method.
|
int |
size()
Returns the number of MolecularFormulas in this AdductFormula.
|
cloneequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloneforEach, spliteratorpublic DebugAdductFormula()
public DebugAdductFormula(IMolecularFormula formula)
public boolean contains(IIsotope isotope)
contains in interface IAdductFormulacontains in class AdductFormulaisotope - The IIsotope this AdductFormula is searched forpublic Integer getCharge()
getCharge in interface IAdductFormulagetCharge in class AdductFormulaAdductFormula.setCharge(java.lang.Integer)public int getIsotopeCount(IIsotope isotope)
getIsotopeCount in interface IAdductFormulagetIsotopeCount in class AdductFormulaisotope - The IIsotope to look forAdductFormula.getIsotopeCount()public int getIsotopeCount()
getIsotopeCount in interface IAdductFormulagetIsotopeCount in class AdductFormulaAdductFormula.getIsotopeCount(IIsotope)public Iterable<IIsotope> isotopes()
isotopes in interface IAdductFormulaisotopes in class AdductFormulapublic void setCharge(Integer charge)
setCharge in interface IAdductFormulasetCharge in class AdductFormulacharge - The partial chargeAdductFormula.getCharge()public void add(IMolecularFormulaSet formulaSet)
add in interface IMolecularFormulaSetadd in class AdductFormulaformulaSet - The MolecularFormulaSetpublic void addMolecularFormula(IMolecularFormula formula)
addMolecularFormula in interface IMolecularFormulaSetaddMolecularFormula in class AdductFormulaformula - The molecularFormula to be added to this chemObjectpublic boolean contains(IMolecularFormula formula)
contains in interface IMolecularFormulaSetcontains in class AdductFormulaformula - The IMolecularFormula this AdductFormula is searched forpublic IMolecularFormula getMolecularFormula(int position)
number in the
chemObject.getMolecularFormula in interface IMolecularFormulaSetgetMolecularFormula in class AdductFormulaposition - The position of the IMolecularFormula to be returned.number .public Iterator<IMolecularFormula> iterator()
iterator in interface Iterable<IMolecularFormula>iterator in class AdductFormulapublic Iterable<IMolecularFormula> molecularFormulas()
molecularFormulas in interface IMolecularFormulaSetmolecularFormulas in class AdductFormulaIMolecularFormulaSet.addMolecularFormula(IMolecularFormula)public void removeAllMolecularFormulas()
removeAllMolecularFormulas in interface IMolecularFormulaSetremoveAllMolecularFormulas in class AdductFormulapublic void removeMolecularFormula(IMolecularFormula formula)
removeMolecularFormula in interface IMolecularFormulaSetremoveMolecularFormula in class AdductFormulaformula - The IMolecularFormula to be removed from this chemObjectpublic void removeMolecularFormula(int position)
removeMolecularFormula in interface IMolecularFormulaSetremoveMolecularFormula in class AdductFormulaposition - The position of the MolecularFormula to be removed from this chemObjectpublic int size()
size in interface IMolecularFormulaSetsize in class AdductFormulapublic IChemObjectBuilder getBuilder()
IChemObjectBuilder for the data classes that extend
this class.getBuilder in interface ICDKObjectgetBuilder in class AdductFormulaIChemObjectBuilder matching this ICDKObjectCopyright © 2021. All rights reserved.