SymbolSetQueryAtom extends QueryAtom implements IQueryAtom { @Override public boolean matches(IAtom atom) { return symbols.contains(atom.getSymbol()); } SymbolSetQueryAtom(IChemObjectBuilder builder); void setOperator(String str); @Override boolean matches(IAtom atom); void addSymbol(String symbol); void removeSymbol(String symbol); boolean hasSymbol(String symbol); Set<String> getSymbolSet(); @Override String toString(); @Override IAtom clone();  }
@Test public void testMatches() { Atom c = new Atom("C"); Atom n = new Atom("N"); Assert.assertTrue(symbolSet.matches(c)); Assert.assertFalse(symbolSet.matches(n)); }