-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNode.java
58 lines (46 loc) · 1.48 KB
/
Node.java
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
package com.stkj.pperty.util;
import lombok.Getter;
import lombok.Setter;
/**
* @author HUANGP
* @date 2018年2月27日
* @des
*/
@Getter @Setter
public class Node extends BaseNode<Node> implements java.io.Serializable {
private static final long serialVersionUID = -2721191232926604726L;
private String type;
private String description;
private String det;
private int ishow;
private int isHouse;
public Node(int id, int parentId, String name,String det) {
super();
this.id = id;
this.parentId = parentId;
this.nodeName = name;
this.det=det;
}
public Node(int id,int parentId,String name,String det,int ishow,int isHouse) {
super();
this.id = id;
this.parentId = parentId;
this.nodeName = name;
this.det=det;
this.ishow = ishow;
this.isHouse=isHouse;
}
public Node(int id, int parentId, String name,String det,int ishow) {
super();
this.id = id;
this.parentId = parentId;
this.nodeName = name;
this.det=det;
this.ishow = ishow;
}
@Override
public String toString() {
return "{\"id\":" + id + ",\"parentId\":" + parentId + ",\"child\":" + child + ",\"nodeName\":\"" + nodeName + "\",\"ishow\":\"" + this.ishow
+ "\",\"level\":" + level + ",\"det\":\"" + det + "\",\"type\":\"" + type + "\",\"description\":\"" + description + "\",\"isHouse\":"+isHouse+"}";
}
}