diff options
Diffstat (limited to 'base/src/main/java/bjc/utils/data/Tree.java')
| -rw-r--r-- | base/src/main/java/bjc/utils/data/Tree.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/base/src/main/java/bjc/utils/data/Tree.java b/base/src/main/java/bjc/utils/data/Tree.java index 77dc390..40ed0f5 100644 --- a/base/src/main/java/bjc/utils/data/Tree.java +++ b/base/src/main/java/bjc/utils/data/Tree.java @@ -29,6 +29,8 @@ public class Tree<ContainedType> implements ITree<ContainedType> { /* * @NOTE Why have both this boolean and childCount? Why not just do a * childCount == 0 whenever you'd check hasChildren? + * - Because hasChildren is set once and not reset, and really what + * it indicates is that children has been allocated. */ private boolean hasChildren; /* The number of children this node has. */ |
