diff --git a/src/main/java/com/cetc32/dh/common/utils/TreeNode.java b/src/main/java/com/cetc32/dh/common/utils/TreeNode.java index 17d7163e715857fc9dc4ae4bbed1c917bdf2018a..75b38a1e565fe8a01ceb68681a3894212162de52 100644 --- a/src/main/java/com/cetc32/dh/common/utils/TreeNode.java +++ b/src/main/java/com/cetc32/dh/common/utils/TreeNode.java @@ -15,7 +15,7 @@ public class TreeNode { String value; String title; String pKey; - List leaf; + List children; public TreeNode(){} public TreeNode(String key,String value){ @@ -27,12 +27,12 @@ public class TreeNode { public TreeNode(String key,String value,String title,String pKey){ this(key,value,title,pKey,null); } - public TreeNode(String key,String value,String title,String pKey,List leaf){ + public TreeNode(String key,String value,String title,String pKey,List children){ this.key =key; this.value=value; this.title =title; this.pKey=pKey; - this.leaf =leaf; + this.children = children; } @@ -68,17 +68,17 @@ public class TreeNode { this.pKey = pKey; } - public List getLeaf() { - return leaf; + public List getChildren() { + return children; } - public void setLeaf(List leaf) { - this.leaf = leaf; + public void setChildren(List children) { + this.children = children; } public void addLeaf(TreeNode leaf){ - if(this.leaf==null) - this.leaf = new ArrayList<>(); - this.leaf.add(leaf); + if(this.children ==null) + this.children = new ArrayList<>(); + this.children.add(leaf); } }