public final String toString() {StringBuilder buffer = new StringBuilder();buffer.append("Document<");for (int i = 0; i < fields.size(); i++) {IndexableField field = fields.get(i);buffer.append(field.toString());if (i != fields.size()-1) {buffer.append(" ");}}buffer.append(">");return buffer.toString();}
public override string ToString(){var buffer = new StringBuilder();buffer.Append("Document<");for (int i = 0; i < fields.Count; i++){IIndexableField field = fields[i];buffer.Append(field.ToString());if (i != fields.Count - 1){buffer.Append(" ");}}buffer.Append(">");return buffer.ToString();}