code: public final void setElementAt(int value, int index)
    {
      if (index >= m_mapSize)
      {
        int oldSize = m_mapSize;
        
        m_mapSize += m_blocksize;
  
        int newMap[] = new int[m_mapSize];
  
        System.arraycopy(m_map, 0, newMap, 0, oldSize);
  
        m_map = newMap;
      }
  
      m_map[index] = value;
    }
docs: Sets the component at the specified index of this vector to be the
  specified object. The previous component at that position is discarded.
  
  The index must be a value greater than or equal to 0 and less
  than the current size of the vector.
  
  @param value object to set
  @param index Index of where to set the object