/** * Sets the array of bonds of this AtomContainer. * * @param bonds The array of bonds to be assigned to this AtomContainer * @see #getBond */ public void setBonds(IBond[] bonds) { this.bonds = bonds; for (IBond bond : bonds) { bond.addListener(this); } this.bondCount = bonds.length; }