code: @Override
      public void setBonds(IBond[] newBonds) {
          ensureBondCapacity(newBonds.length);
          System.arraycopy(newBonds, 0, this.bonds, 0, newBonds.length);
          if (newBonds.length < this.bonds.length)
              Arrays.fill(bonds, newBonds.length, this.bonds.length, null);
          this.bondCount = newBonds.length;
      }
docs: {@inheritDoc}