SymbolSetQueryAtom extends QueryAtom implements IQueryAtom { public boolean hasSymbol(String symbol) { return symbols.contains(symbol); } 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 testHasSymbol() { Assert.assertTrue(symbolSet.hasSymbol("C")); Assert.assertFalse(symbolSet.hasSymbol("N")); }