Class ValenceFilter

java.lang.Object
chemaxon.core.util.ValenceFilter
All Implemented Interfaces:
MolFilter

@PublicApi public class ValenceFilter extends Object implements MolFilter
Molecule filter that excludes molecules having valence errors.
Since:
Marvin 5.0
  • Field Details

  • Constructor Details

    • ValenceFilter

      public ValenceFilter()
  • Method Details

    • accept

      public boolean accept(Molecule mol)
      Returns true if molecule has no valence error. For RgMolecule checks root structure only. It is assumed that MoleculeGraph.valenceCheck() has been called for this molecule beforehand.
      Specified by:
      accept in interface MolFilter
      Parameters:
      mol - is the molecule
      Returns:
      true if molecule has no valence error