yangys
2024-03-31 2969df3e404db3cd116f27db1495e523ce05bf86
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
package com.qianwen.core.tool.node;
 
import com.qianwen.core.tool.utils.StringPool;
 
/* loaded from: blade-core-tool-9.3.0.0-SNAPSHOT.jar:org/springblade/core/tool/node/ForestNode.class */
public class ForestNode extends BaseNode<ForestNode> {
    private static final long serialVersionUID = 1;
    private Object content;
 
    public void setContent(final Object content) {
        this.content = content;
    }
 
    @Override // org.springblade.core.tool.node.BaseNode
    public String toString() {
        return "ForestNode(content=" + getContent() + StringPool.RIGHT_BRACKET;
    }
 
    @Override // org.springblade.core.tool.node.BaseNode
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof ForestNode) {
            ForestNode other = (ForestNode) o;
            if (other.canEqual(this)) {
                Object this$content = getContent();
                Object other$content = other.getContent();
                return this$content == null ? other$content == null : this$content.equals(other$content);
            }
            return false;
        }
        return false;
    }
 
    @Override // org.springblade.core.tool.node.BaseNode
    protected boolean canEqual(final Object other) {
        return other instanceof ForestNode;
    }
 
    @Override // org.springblade.core.tool.node.BaseNode
    public int hashCode() {
        Object $content = getContent();
        int result = (1 * 59) + ($content == null ? 43 : $content.hashCode());
        return result;
    }
 
    public Object getContent() {
        return this.content;
    }
 
    public ForestNode(Long id, Long parentId, Object content) {
        this.id = id;
        this.parentId = parentId;
        this.content = content;
    }
}