1
0
mirror of https://github.com/DanilaFe/abacus synced 2026-01-27 00:55:19 +00:00

Implement toString in child nodes of TreeNode.

This commit is contained in:
2017-07-26 17:26:55 -07:00
parent 8754871556
commit d7caf1cdc7
2 changed files with 20 additions and 0 deletions

View File

@@ -49,4 +49,9 @@ public class NumberNode extends TreeNode {
public <T> T reduce(Reducer<T> reducer) {
return reducer.reduceNode(this);
}
@Override
public String toString() {
return number != null ? number.toString() : "null";
}
}