jinlin
2025-03-01 86f02fee03614fef275c6e0c355d73318ca3025e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/**
 * Copyright (c) 2018 人人开源 All rights reserved.
 *
 * https://www.renren.io
 *
 * 版权所有,侵权必究!
 */
 
package com.example.client.entity;
 
import java.io.Serializable;
import java.util.List;
 
/**
 * 树节点,所有需要实现树节点的,都需要继承该类
 *
 * @author hehz
 * @since 1.0.0
 */
public interface TreeNode2<T> extends Serializable {
 
    String getId();
 
    void setId(String id);
 
    String getPid();
 
    void setPid(String pid);
 
    List<T> getChildren();
 
}