Skip to content

Commit

Permalink
[update] override toString() in class Document
Browse files Browse the repository at this point in the history
  • Loading branch information
brianway committed Dec 14, 2016
1 parent b3beb6e commit 373e9b8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,9 @@ public String getContent() {
public void setContent(String content) {
this.content = content;
}

@Override
public String toString() {
return String.format("id: %s, data: %s", id, content);
}
}

0 comments on commit 373e9b8

Please sign in to comment.