public String toString() {StringBuilder buf = new StringBuilder();buf.append("DiffEntry[");buf.append(changeType);buf.append(" ");switch (changeType) {case ADD:buf.append(newPath);break;case COPY:buf.append(oldPath + "->" + newPath);break;case DELETE:buf.append(oldPath);break;case MODIFY:buf.append(oldPath);break;case RENAME:buf.append(oldPath + "->" + newPath);break;}buf.append("]");return buf.toString();}

public override string ToString(){StringBuilder buf = new StringBuilder();buf.Append("DiffEntry[");buf.Append(changeType);buf.Append(" ");switch (changeType){case DiffEntry.ChangeType.ADD:{buf.Append(newPath);break;}case DiffEntry.ChangeType.COPY:{buf.Append(oldPath + "->" + newPath);break;}case DiffEntry.ChangeType.DELETE:{buf.Append(oldPath);break;}case DiffEntry.ChangeType.MODIFY:{buf.Append(oldPath);break;}case DiffEntry.ChangeType.RENAME:{buf.Append(oldPath + "->" + newPath);break;}}buf.Append("]");return buf.ToString();}
