package com.qianwen.smartman.modules.system.vo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.databind.annotation.JsonSerialize; import com.fasterxml.jackson.databind.ser.std.ToStringSerializer; import io.swagger.annotations.ApiModel; import java.util.ArrayList; import java.util.List; import com.qianwen.core.tool.node.INode; import com.qianwen.smartman.modules.system.entity.Role; @ApiModel(value = "RoleVO", description = "RoleVO对象") /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/system/vo/RoleVO.class */ public class RoleVO extends Role implements INode { private static final long serialVersionUID = 1; @JsonSerialize(using = ToStringSerializer.class) private Long id; @JsonSerialize(using = ToStringSerializer.class) private Long parentId; @JsonInclude(JsonInclude.Include.NON_EMPTY) private List children; private String parentName; @Override // org.springblade.modules.system.entity.Role public void setId(final Long id) { this.id = id; } @Override // org.springblade.modules.system.entity.Role public void setParentId(final Long parentId) { this.parentId = parentId; } public void setChildren(final List children) { this.children = children; } public void setParentName(final String parentName) { this.parentName = parentName; } @Override // org.springblade.modules.system.entity.Role public String toString() { return "RoleVO(id=" + getId() + ", parentId=" + getParentId() + ", children=" + getChildren() + ", parentName=" + getParentName() + ")"; } @Override // org.springblade.modules.system.entity.Role public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof RoleVO) { RoleVO other = (RoleVO) o; if (other.canEqual(this) && super.equals(o)) { Object this$id = getId(); Object other$id = other.getId(); if (this$id == null) { if (other$id != null) { return false; } } else if (!this$id.equals(other$id)) { return false; } Object this$parentId = getParentId(); Object other$parentId = other.getParentId(); if (this$parentId == null) { if (other$parentId != null) { return false; } } else if (!this$parentId.equals(other$parentId)) { return false; } Object this$children = getChildren(); Object other$children = other.getChildren(); if (this$children == null) { if (other$children != null) { return false; } } else if (!this$children.equals(other$children)) { return false; } Object this$parentName = getParentName(); Object other$parentName = other.getParentName(); return this$parentName == null ? other$parentName == null : this$parentName.equals(other$parentName); } return false; } return false; } @Override // org.springblade.modules.system.entity.Role protected boolean canEqual(final Object other) { return other instanceof RoleVO; } @Override // org.springblade.modules.system.entity.Role public int hashCode() { int result = super.hashCode(); Object $id = getId(); int result2 = (result * 59) + ($id == null ? 43 : $id.hashCode()); Object $parentId = getParentId(); int result3 = (result2 * 59) + ($parentId == null ? 43 : $parentId.hashCode()); Object $children = getChildren(); int result4 = (result3 * 59) + ($children == null ? 43 : $children.hashCode()); Object $parentName = getParentName(); return (result4 * 59) + ($parentName == null ? 43 : $parentName.hashCode()); } @Override // org.springblade.modules.system.entity.Role public Long getId() { return this.id; } @Override // org.springblade.modules.system.entity.Role public Long getParentId() { return this.parentId; } public List getChildren() { if (this.children == null) { this.children = new ArrayList(); } return this.children; } public String getParentName() { return this.parentName; } }