class SmallestRingAtom extends SMARTSAtom {

    @Override
    public boolean matches(IAtom atom) {
        return ringSize < 0 ? invariants(atom).ringConnectivity() > 0
                            : invariants(atom).ringSize().contains(ringSize);
    }

    public  SmallestRingAtom(int ringSize, IChemObjectBuilder builder);

}