/** * {@inheritDoc} */ @Override public List<IAtom> getConnectedAtomsList(IAtom atom) { AtomRef aref = getAtomRef(atom); List<IAtom> nbrs = new ArrayList<>(aref.getBondCount()); for (IBond bond : aref.bonds()) { nbrs.add(bond.getOther(atom)); } return nbrs; }
/** * {@inheritDoc} */ @Override public List<IAtom> getConnectedAtomsList(IAtom atom) { AtomRef aref = getAtomRef(atom); List<IAtom> nbrs = new ArrayList<>(aref.getBondCount()); for (IBond bond : aref.bonds()) { nbrs.add(bond.getOther(atom)); } return nbrs; }
/** * {@inheritDoc} */ @Override public List<IAtom> getConnectedAtomsList(IAtom atom) { AtomRef aref = getAtomRef(atom); List<IAtom> nbrs = new ArrayList<>(aref.getBondCount()); for (IBond bond : aref.bonds()) { nbrs.add(bond.getOther(atom)); } return nbrs; }
/** * {@inheritDoc} */ @Override public List<IAtom> getConnectedAtomsList(IAtom atom) { AtomRef aref = getAtomRef(atom); List<IAtom> nbrs = new ArrayList<>(aref.getBondCount()); for (IBond bond : aref.bonds()) { nbrs.add(bond.getOther(atom)); } return nbrs; }
/** * {@inheritDoc} */ @Override public List<IElectronContainer> getConnectedElectronContainersList( IAtom atom) { List<IElectronContainer> ecs = new ArrayList<>(); AtomRef aref = getAtomRef(atom); for (IBond bond : aref.bonds()) { ecs.add(bond); } for (int i = 0; i < numLonePairs; i++) { if (lonepairs[i].contains(atom)) ecs.add(lonepairs[i]); } for (int i = 0; i < numSingleElectrons; i++) { if (electrons[i].contains(atom)) ecs.add(electrons[i]); } return ecs; }
/** * {@inheritDoc} */ @Override public List<IElectronContainer> getConnectedElectronContainersList( IAtom atom) { List<IElectronContainer> ecs = new ArrayList<>(); AtomRef aref = getAtomRef(atom); for (IBond bond : aref.bonds()) { ecs.add(bond); } for (int i = 0; i < numLonePairs; i++) { if (lonepairs[i].contains(atom)) ecs.add(lonepairs[i]); } for (int i = 0; i < numSingleElectrons; i++) { if (electrons[i].contains(atom)) ecs.add(electrons[i]); } return ecs; }
/** * {@inheritDoc} */ @Override public List<IElectronContainer> getConnectedElectronContainersList( IAtom atom) { List<IElectronContainer> ecs = new ArrayList<>(); AtomRef aref = getAtomRef(atom); for (IBond bond : aref.bonds()) { ecs.add(bond); } for (int i = 0; i < numLonePairs; i++) { if (lonepairs[i].contains(atom)) ecs.add(lonepairs[i]); } for (int i = 0; i < numSingleElectrons; i++) { if (electrons[i].contains(atom)) ecs.add(electrons[i]); } return ecs; }
/** * {@inheritDoc} */ @Override public List<IElectronContainer> getConnectedElectronContainersList( IAtom atom) { List<IElectronContainer> ecs = new ArrayList<>(); AtomRef aref = getAtomRef(atom); for (IBond bond : aref.bonds()) { ecs.add(bond); } for (int i = 0; i < numLonePairs; i++) { if (lonepairs[i].contains(atom)) ecs.add(lonepairs[i]); } for (int i = 0; i < numSingleElectrons; i++) { if (electrons[i].contains(atom)) ecs.add(electrons[i]); } return ecs; }