code: @Override
      public IAtom getAtom(int idx) {
          if (idx < 0 || idx >= atomCount)
              throw new IndexOutOfBoundsException("Atom index out of bounds: 0 <= " + idx + " < " + atomCount);
          return atoms[idx];
      }
docs: {@inheritDoc}