code: public Field getFieldByIndex(int fieldIndex)
      {
          checkElementIndex(fieldIndex, allFields.size(), "fieldIndex");
          return allFields.get(fieldIndex);
      }
docs: Gets the field at the specified index.