Skip to content

Commit

Permalink
Override toString() to provide useful info instead of hashcode
Browse files Browse the repository at this point in the history
  • Loading branch information
twilco committed Sep 14, 2018
1 parent fb5bd04 commit 922b8db
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 922b8db

Please sign in to comment.