code: public int fieldIndex(String field) {
      Integer ret = mIndex.get(field);
      if (ret == null) {
        throw new IllegalArgumentException(field + " does not exist");
      }
      return ret;
    }
docs: Returns the position of the specified field.