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.
|
clone
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
forEach, spliterator
public DebugAdductFormula()
public DebugAdductFormula(IMolecularFormula formula)
public boolean contains(IIsotope isotope)
contains
in interface IAdductFormula
contains
in class AdductFormula
isotope
- The IIsotope this AdductFormula is searched forpublic Integer getCharge()
getCharge
in interface IAdductFormula
getCharge
in class AdductFormula
AdductFormula.setCharge(java.lang.Integer)
public int getIsotopeCount(IIsotope isotope)
getIsotopeCount
in interface IAdductFormula
getIsotopeCount
in class AdductFormula
isotope
- The IIsotope to look forAdductFormula.getIsotopeCount()
public int getIsotopeCount()
getIsotopeCount
in interface IAdductFormula
getIsotopeCount
in class AdductFormula
AdductFormula.getIsotopeCount(IIsotope)
public Iterable<IIsotope> isotopes()
isotopes
in interface IAdductFormula
isotopes
in class AdductFormula
public void setCharge(Integer charge)
setCharge
in interface IAdductFormula
setCharge
in class AdductFormula
charge
- The partial chargeAdductFormula.getCharge()
public void add(IMolecularFormulaSet formulaSet)
add
in interface IMolecularFormulaSet
add
in class AdductFormula
formulaSet
- The MolecularFormulaSetpublic void addMolecularFormula(IMolecularFormula formula)
addMolecularFormula
in interface IMolecularFormulaSet
addMolecularFormula
in class AdductFormula
formula
- The molecularFormula to be added to this chemObjectpublic boolean contains(IMolecularFormula formula)
contains
in interface IMolecularFormulaSet
contains
in class AdductFormula
formula
- The IMolecularFormula this AdductFormula is searched forpublic IMolecularFormula getMolecularFormula(int position)
number
in the
chemObject.getMolecularFormula
in interface IMolecularFormulaSet
getMolecularFormula
in class AdductFormula
position
- The position of the IMolecularFormula to be returned.number
.public Iterator<IMolecularFormula> iterator()
iterator
in interface Iterable<IMolecularFormula>
iterator
in class AdductFormula
public Iterable<IMolecularFormula> molecularFormulas()
molecularFormulas
in interface IMolecularFormulaSet
molecularFormulas
in class AdductFormula
IMolecularFormulaSet.addMolecularFormula(IMolecularFormula)
public void removeAllMolecularFormulas()
removeAllMolecularFormulas
in interface IMolecularFormulaSet
removeAllMolecularFormulas
in class AdductFormula
public void removeMolecularFormula(IMolecularFormula formula)
removeMolecularFormula
in interface IMolecularFormulaSet
removeMolecularFormula
in class AdductFormula
formula
- The IMolecularFormula to be removed from this chemObjectpublic void removeMolecularFormula(int position)
removeMolecularFormula
in interface IMolecularFormulaSet
removeMolecularFormula
in class AdductFormula
position
- The position of the MolecularFormula to be removed from this chemObjectpublic int size()
size
in interface IMolecularFormulaSet
size
in class AdductFormula
public IChemObjectBuilder getBuilder()
IChemObjectBuilder
for the data classes that extend
this class.getBuilder
in interface ICDKObject
getBuilder
in class AdductFormula
IChemObjectBuilder
matching this ICDKObject
Copyright © 2021. All rights reserved.