private void delFromEndpoints(BondRef bondref) { for (int i = 0; i < bondref.getAtomCount(); i++) { BaseAtomRef aref = getAtomRefUnsafe(bondref.getAtom(i)); // atom may have already been deleted, naughty! if (aref != null) aref.bonds.remove(bondref); } }
@Override public IAtom getAtom(int idx) { switch (idx) { case 0: return getBegin(); case 1: return getEnd(); default: return mol.getAtomRef(super.getAtom(idx)); } }
private void delFromEndpoints(BondRef bondref) { for (int i = 0; i < bondref.getAtomCount(); i++) { BaseAtomRef aref = getAtomRefUnsafe(bondref.getAtom(i)); // atom may have already been deleted, naughty! if (aref != null) aref.bonds.remove(bondref); } }
@Override public IAtom getAtom(int idx) { switch (idx) { case 0: return getBegin(); case 1: return getEnd(); default: return mol.getAtomRef(super.getAtom(idx)); } }
private void delFromEndpoints(BondRef bondref) { for (int i = 0; i < bondref.getAtomCount(); i++) { BaseAtomRef aref = getAtomRefUnsafe(bondref.getAtom(i)); // atom may have already been deleted, naughty! if (aref != null) aref.bonds.remove(bondref); } }
@Override public IAtom getAtom(int idx) { switch (idx) { case 0: return getBegin(); case 1: return getEnd(); default: return mol.getAtomRef(super.getAtom(idx)); } }
private void delFromEndpoints(BondRef bondref) { for (int i = 0; i < bondref.getAtomCount(); i++) { BaseAtomRef aref = getAtomRefUnsafe(bondref.getAtom(i)); // atom may have already been deleted, naughty! if (aref != null) aref.bonds.remove(bondref); } }
@Override public IAtom getAtom(int idx) { switch (idx) { case 0: return getBegin(); case 1: return getEnd(); default: return mol.getAtomRef(super.getAtom(idx)); } }
members[j] = atomMap.get(original.getAtom(j));
members[j] = atomMap.get(original.getAtom(j));
members[j] = atomMap.get(original.getAtom(j));
members[j] = atomMap.get(original.getAtom(j));