You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
64 lines
1.0 KiB
64 lines
1.0 KiB
3 years ago
|
package com.fr.plugin.mail.fold;
|
||
|
|
||
|
import com.fr.cache.list.IntList;
|
||
|
|
||
|
/**
|
||
|
* @author fr.open
|
||
|
* @date 2019/6/3
|
||
|
*/
|
||
|
public class TreeNode {
|
||
|
/**
|
||
|
* 自身所在行
|
||
|
*/
|
||
|
private int self;
|
||
|
/**
|
||
|
* 父节点所在行
|
||
|
*/
|
||
|
private int parent;
|
||
|
/**
|
||
|
* 子节点
|
||
|
*/
|
||
|
|
||
|
private IntList sons;
|
||
|
|
||
|
private int level;
|
||
|
|
||
|
public TreeNode(int self, int parent, IntList sons) {
|
||
|
this.self = self;
|
||
|
this.parent = parent;
|
||
|
this.sons = sons;
|
||
|
}
|
||
|
|
||
|
public int getParent() {
|
||
|
return parent;
|
||
|
}
|
||
|
|
||
|
public void setParent(int parent) {
|
||
|
this.parent = parent;
|
||
|
}
|
||
|
|
||
|
public int getSelf() {
|
||
|
return self;
|
||
|
}
|
||
|
|
||
|
public void setSelf(int self) {
|
||
|
this.self = self;
|
||
|
}
|
||
|
|
||
|
public IntList getSons() {
|
||
|
return sons;
|
||
|
}
|
||
|
|
||
|
public void setSons(IntList sons) {
|
||
|
this.sons = sons;
|
||
|
}
|
||
|
|
||
|
public int getLevel() {
|
||
|
return level;
|
||
|
}
|
||
|
|
||
|
public void setLevel(int level) {
|
||
|
this.level = level;
|
||
|
}
|
||
|
}
|