mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-04-19 03:01:48 +08:00
add ser
This commit is contained in:
parent
086f3a2e77
commit
f108b91e0c
@ -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
|
||||
*
|
||||
|
@ -12,6 +12,7 @@ import java.util.Map;
|
||||
* @author liangbaikai
|
||||
*/
|
||||
public class TreeNode<T> implements Node<T> {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**
|
||||
* ID
|
||||
|
@ -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;
|
||||
|
||||
/**
|
||||
* 默认属性配置对象
|
||||
|
Loading…
x
Reference in New Issue
Block a user