6869707172737475767778
public int getChildCount(Object parent) { if (parent instanceof TreeNode) { TreeNode node = (TreeNode) parent; return node.children().size(); } return 0; }
9596979899100101102103104105
log.debug("isLeaf( {} )", node); if (node instanceof TreeNode) { TreeNode n = (TreeNode) node; return n.children().size() == 0; } return true; }