package com.qianwen.core.scanner.modular.model;
|
|
import java.util.List;
|
|
/* loaded from: blade-starter-scanner-9.3.0.0-SNAPSHOT.jar:org/springblade/core/scanner/modular/model/ResourceTreeNode.class */
|
public class ResourceTreeNode {
|
private String name;
|
private String code;
|
private List<ResourceTreeNode> children;
|
|
public void setName(final String name) {
|
this.name = name;
|
}
|
|
public void setCode(final String code) {
|
this.code = code;
|
}
|
|
public void setChildren(final List<ResourceTreeNode> children) {
|
this.children = children;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof ResourceTreeNode) {
|
ResourceTreeNode other = (ResourceTreeNode) o;
|
if (other.canEqual(this)) {
|
Object this$name = getName();
|
Object other$name = other.getName();
|
if (this$name == null) {
|
if (other$name != null) {
|
return false;
|
}
|
} else if (!this$name.equals(other$name)) {
|
return false;
|
}
|
Object this$code = getCode();
|
Object other$code = other.getCode();
|
if (this$code == null) {
|
if (other$code != null) {
|
return false;
|
}
|
} else if (!this$code.equals(other$code)) {
|
return false;
|
}
|
Object this$children = getChildren();
|
Object other$children = other.getChildren();
|
return this$children == null ? other$children == null : this$children.equals(other$children);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof ResourceTreeNode;
|
}
|
|
public int hashCode() {
|
Object $name = getName();
|
int result = (1 * 59) + ($name == null ? 43 : $name.hashCode());
|
Object $code = getCode();
|
int result2 = (result * 59) + ($code == null ? 43 : $code.hashCode());
|
Object $children = getChildren();
|
return (result2 * 59) + ($children == null ? 43 : $children.hashCode());
|
}
|
|
public String toString() {
|
return "ResourceTreeNode(name=" + getName() + ", code=" + getCode() + ", children=" + getChildren() + ")";
|
}
|
|
public String getName() {
|
return this.name;
|
}
|
|
public String getCode() {
|
return this.code;
|
}
|
|
public List<ResourceTreeNode> getChildren() {
|
return this.children;
|
}
|
|
public ResourceTreeNode() {
|
}
|
|
public ResourceTreeNode(String name, String code) {
|
this.name = name;
|
this.code = code;
|
}
|
|
public ResourceTreeNode(String name, String code, List<ResourceTreeNode> children) {
|
this.name = name;
|
this.code = code;
|
this.children = children;
|
}
|
}
|