📄 treenode.java
字号:
package com.web.util;
/**
*
*
* 树型结构树结点抽象类
*/
public abstract class TreeNode {
protected TreeNodeValue treeNodeValue;
protected TreeNode[] childNode;
public abstract void setChildNodeValue(TreeNode node);
/**
* Returns the childNode.
* @return TreeNode[]
*/
public TreeNode[] getChildNode() {
return childNode;
}
/**
* Returns the treeNodeValue.
* @return TreeNodeValue
*/
public TreeNodeValue getTreeNodeValue() {
return treeNodeValue;
}
/**
* Sets the childNode.
* @param childNode The childNode to set
*/
public void setChildNode(TreeNode[] childNode) {
this.childNode = childNode;
}
/**
* Sets the treeNodeValue.
* @param treeNodeValue The treeNodeValue to set
*/
public void setTreeNodeValue(TreeNodeValue treeNodeValue) {
this.treeNodeValue = treeNodeValue;
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -