code: @Override
      public IBond getBond(int idx) {
          if (idx < 0 || idx >= bondCount)
              throw new IndexOutOfBoundsException("Bond index out of bounds: 0 <= " + idx + " < " + bondCount);
          return bonds[idx];
      }
docs: {@inheritDoc}