Skip to content

Commit

Permalink
add toString to TreeNode
Browse files Browse the repository at this point in the history
  • Loading branch information
TellH committed Oct 2, 2016
1 parent ad571b3 commit cf14a02
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,14 @@ public boolean toggle() {
public boolean isExpand() {
return isExpand;
}

@Override
public String toString() {
return "TreeNode{" +
"content=" + content +
", parent=" + parent.getContent() +
", childList=" + childList +
", isExpand=" + isExpand +
'}';
}
}

0 comments on commit cf14a02

Please sign in to comment.