Add toString() methods to help with debugging

git-svn-id: http://google-refine.googlecode.com/svn/trunk@1894 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Tom Morris 2010-11-18 08:19:05 +00:00
parent dd333d5b43
commit 675714d03d
2 changed files with 13 additions and 0 deletions

View File

@ -179,4 +179,8 @@ public class Cell implements HasFields, Jsonizable {
return null;
}
}
public String toString() {
return value.toString();
}
}

View File

@ -231,4 +231,13 @@ public class Row implements HasFields, Jsonizable {
return (cells.size() > 0) ? new Row(cells, flagged, starred) : null;
}
public String toString() {
StringBuffer result = new StringBuffer();
for (Cell cell : cells) {
result.append(cell.toString());
result.append(",");
}
return result.toString();
}
}