package com.landtool.lanbase.modules.res.entity; import java.util.ArrayList; import java.util.List; import java.util.Objects; public class TreeDataByResourceType { private String id; private String name; private List children= new ArrayList<>(); private String pid; public String getId() { return id; } public void setId(String id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } public List getChildren() { return children; } public void setChildren(List children) { this.children = children; } @Override public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; TreeDataByResourceType that = (TreeDataByResourceType) o; return Objects.equals(id, that.id) && Objects.equals(name, that.name) && Objects.equals(children, that.children); } @Override public int hashCode() { return Objects.hash(id, name, children); } @Override public String toString() { return "TreeDataByResourceType{" + "id='" + id + '\'' + ", name='" + name + '\'' + ", list=" + children + ", pid='" + pid + '\'' + '}'; } public String getPid() { return pid; } public void setPid(String pid) { this.pid = pid; } }