private boolean isANeighboorsInAnAtomContainer ( List < IAtom > neighs , IAtomContainer ac ) { boolean isIn = false ; int count = 0 ; for ( IAtom neigh : neighs ) { if ( ac . contains ( neigh ) ) { count += 1 ; } } if ( count > 0 ) { isIn = true ; } return isIn ; }
Gets if neighbours of an atom are in an atom container .