/** * Removes the given isotope from the MolecularFormula. * * @param isotope The IIsotope to be removed */ @Override public void removeIsotope(IIsotope isotope) { isotopes.remove(getIsotope(isotope)); }
/** * Removes the given isotope from the MolecularFormula. * * @param isotope The IIsotope to be removed */ @Override public void removeIsotope(IIsotope isotope) { isotopes.remove(getIsotope(isotope)); }
/** * Checks a set of Nodes for the occurrence of the isotope in the * IMolecularFormula from a particular isotope. It returns 0 if the does not exist. * * @param isotope The IIsotope to look for * @return The occurrence of this isotope in this IMolecularFormula * @see #getIsotopeCount() */ @Override public int getIsotopeCount(IIsotope isotope) { return !contains(isotope) ? 0 : isotopes.get(getIsotope(isotope)); }
/** * Checks a set of Nodes for the occurrence of the isotope in the * IMolecularFormula from a particular isotope. It returns 0 if the does not exist. * * @param isotope The IIsotope to look for * @return The occurrence of this isotope in this IMolecularFormula * @see #getIsotopeCount() */ @Override public int getIsotopeCount(IIsotope isotope) { return !contains(isotope) ? 0 : isotopes.get(getIsotope(isotope)); }