code: public int fieldIndex(String fieldName) {
  		for (int i = 0; i < fields.size(); i++) {
  			if (U.eq(fields.get(i).name, fieldName)) {
  				return i;
  			}
  		}
  
  		throw U.rte("Cannot find field '%s'!", fieldName);
  	}
docs: /* FIELD