Skip to content

Commit

Permalink
Merge pull request #19 from Widen/improve-display-of-headers-and-rows
Browse files Browse the repository at this point in the history
Override toString() to provide useful info instead of hashcode
  • Loading branch information
twilco authored Sep 14, 2018
2 parents fb5bd04 + 922b8db commit 22ae98d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/widen/tabitha/Header.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,4 +180,7 @@ public DuplicateColumnException(String column) {
super("The column '" + column + "' already exists.");
}
}

@Override
public String toString() { return columnsByIndex.toString(); }
}
3 changes: 3 additions & 0 deletions src/main/java/com/widen/tabitha/Row.java
Original file line number Diff line number Diff line change
Expand Up @@ -276,4 +276,7 @@ private Modifier(Header header, Variant[] cells) {
this.cells = cells;
}
}

@Override
public String toString() { return Arrays.toString(cells); }
}

0 comments on commit 22ae98d

Please sign in to comment.