Add toString methods to help with debugging

git-svn-id: http://google-refine.googlecode.com/svn/trunk@2321 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Tom Morris 2011-10-11 20:19:53 +00:00
parent 5c856179cb
commit 2726f61a61

View File

@ -54,6 +54,11 @@ public class RecordModel implements Jsonizable {
this.rowIndex = rowIndex;
this.cellIndex = cellIndex;
}
@Override
public String toString() {
return rowIndex+":"+cellIndex;
}
}
final static public class RowDependency {
@ -105,6 +110,15 @@ public class RecordModel implements Jsonizable {
static protected class KeyedGroup {
int[] cellIndices;
int keyCellIndex;
@Override
public String toString() {
StringBuffer sb = new StringBuffer();
for (int i:cellIndices) {
sb.append(i).append(',');
}
return "key: " + keyCellIndex + " cells: " + sb.toString();
}
}
synchronized public void update(Project project) {