code: public void removeTableParameter(final int pid) {
          final TableParameter p = indexParameter.get(pid);
          if (p == null) return;
  
          // Pull the reference count
          final Integer pcount = count.get(p);
  
          // Alter maps and set only if 1 ref
          if (pcount == 1 && parameters.remove(p)) {
              Integer value = parameterIndex.remove(p);
              indexParameter.remove(value);
              count.remove(p);
          } else {
              count.put(p, pcount - 1);
          }
      }
docs: Removes a parameter by index, from the table's internal set and backing
  maps and adjusts indices.
  <p>
  If no parameter exists for the specified index, this method is a no-op.
  </p>
  
  @param pid Table parameter index