Class TotalHCountAtom

All Implemented Interfaces:
Cloneable, IAtom, IAtomType, ICDKObject, IChemObject, IElement, IIsotope, IQueryAtom

@Deprecated public final class TotalHCountAtom extends SMARTSAtom
Deprecated.
SMARTS query atom for matching the total hydrogen count. This count is specified in SMARTS using H<NUMBER>.
Source code:
main
Belongs to CDK module:
smarts
Keywords:
SMARTS
  • Constructor Details

    • TotalHCountAtom

      public TotalHCountAtom(int totalHCount, IChemObjectBuilder builder)
      Deprecated.
  • Method Details

    • matches

      public boolean matches(IAtom atom)
      Deprecated.
      Check if the total hydrogen count of the atom is equal to the query.
      Specified by:
      matches in interface IQueryAtom
      Overrides:
      matches in class SMARTSAtom
      Parameters:
      atom - the atom to match
      Returns:
      the hydrogen count matches
    • toString

      public String toString()
      Deprecated.
      Returns a one line description of this IChemObject.
      Specified by:
      toString in interface IChemObject
      Overrides:
      toString in class Object
      Returns:
      a String representation of this object