This commit is contained in:
Looly 2020-06-18 08:51:48 +08:00
parent 086f3a2e77
commit f108b91e0c
3 changed files with 9 additions and 2 deletions

View File

@ -1,5 +1,7 @@
package cn.hutool.core.lang.tree;
import java.io.Serializable;
/**
* 节点接口提供节点相关的的方法定义
*
@ -7,7 +9,8 @@ package cn.hutool.core.lang.tree;
* @author looly
* @since 5.2.4
*/
public interface Node<T> extends Comparable<Node<T>> {
public interface Node<T> extends Comparable<Node<T>>, Serializable {
/**
* 获取ID
*

View File

@ -12,6 +12,7 @@ import java.util.Map;
* @author liangbaikai
*/
public class TreeNode<T> implements Node<T> {
private static final long serialVersionUID = 1L;
/**
* ID

View File

@ -1,11 +1,14 @@
package cn.hutool.core.lang.tree;
import java.io.Serializable;
/**
* 树配置属性相关
*
* @author liangbaikai
*/
public class TreeNodeConfig {
public class TreeNodeConfig implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 默认属性配置对象