package com.qianwen.smartman.modules.smis.vo; import com.fasterxml.jackson.annotation.JsonInclude; import io.swagger.annotations.ApiModelProperty; import java.util.List; import org.apache.commons.compress.utils.Lists; import com.qianwen.core.tool.node.INode; import com.qianwen.core.tool.utils.Func; public class VersionProcessTreeVO implements INode { private static final long serialVersionUID = -3961950537984963741L; @ApiModelProperty(value = "主键", dataType = "java.lang.String") private Long id; private Long processId; private String processCode; private String processName; private Integer processType; private Integer sort; private Long parentId; @ApiModelProperty("目标ID") private String targetId; @ApiModelProperty("资源ID") private String sourceId; @ApiModelProperty("x坐标") private String xCoordinate; @ApiModelProperty("y坐标") private String yCoordinate; private Integer height; @JsonInclude(JsonInclude.Include.NON_EMPTY) private List children; @JsonInclude(JsonInclude.Include.NON_EMPTY) private Boolean hasChildren; public void setId(final Long id) { this.id = id; } public void setProcessId(final Long processId) { this.processId = processId; } public void setProcessCode(final String processCode) { this.processCode = processCode; } public void setProcessName(final String processName) { this.processName = processName; } public void setProcessType(final Integer processType) { this.processType = processType; } public void setSort(final Integer sort) { this.sort = sort; } public void setParentId(final Long parentId) { this.parentId = parentId; } public void setTargetId(final String targetId) { this.targetId = targetId; } public void setSourceId(final String sourceId) { this.sourceId = sourceId; } public void setXCoordinate(final String xCoordinate) { this.xCoordinate = xCoordinate; } public void setYCoordinate(final String yCoordinate) { this.yCoordinate = yCoordinate; } public void setHeight(final Integer height) { this.height = height; } public void setChildren(final List children) { this.children = children; } public void setHasChildren(final Boolean hasChildren) { this.hasChildren = hasChildren; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof VersionProcessTreeVO) { VersionProcessTreeVO other = (VersionProcessTreeVO) o; if (other.canEqual(this)) { 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$processId = getProcessId(); Object other$processId = other.getProcessId(); if (this$processId == null) { if (other$processId != null) { return false; } } else if (!this$processId.equals(other$processId)) { return false; } Object this$processType = getProcessType(); Object other$processType = other.getProcessType(); if (this$processType == null) { if (other$processType != null) { return false; } } else if (!this$processType.equals(other$processType)) { return false; } Object this$sort = getSort(); Object other$sort = other.getSort(); if (this$sort == null) { if (other$sort != null) { return false; } } else if (!this$sort.equals(other$sort)) { 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$height = getHeight(); Object other$height = other.getHeight(); if (this$height == null) { if (other$height != null) { return false; } } else if (!this$height.equals(other$height)) { return false; } Object this$hasChildren = getHasChildren(); Object other$hasChildren = other.getHasChildren(); if (this$hasChildren == null) { if (other$hasChildren != null) { return false; } } else if (!this$hasChildren.equals(other$hasChildren)) { return false; } Object this$processCode = getProcessCode(); Object other$processCode = other.getProcessCode(); if (this$processCode == null) { if (other$processCode != null) { return false; } } else if (!this$processCode.equals(other$processCode)) { return false; } Object this$processName = getProcessName(); Object other$processName = other.getProcessName(); if (this$processName == null) { if (other$processName != null) { return false; } } else if (!this$processName.equals(other$processName)) { return false; } Object this$targetId = getTargetId(); Object other$targetId = other.getTargetId(); if (this$targetId == null) { if (other$targetId != null) { return false; } } else if (!this$targetId.equals(other$targetId)) { return false; } Object this$sourceId = getSourceId(); Object other$sourceId = other.getSourceId(); if (this$sourceId == null) { if (other$sourceId != null) { return false; } } else if (!this$sourceId.equals(other$sourceId)) { return false; } Object this$xCoordinate = getXCoordinate(); Object other$xCoordinate = other.getXCoordinate(); if (this$xCoordinate == null) { if (other$xCoordinate != null) { return false; } } else if (!this$xCoordinate.equals(other$xCoordinate)) { return false; } Object this$yCoordinate = getYCoordinate(); Object other$yCoordinate = other.getYCoordinate(); if (this$yCoordinate == null) { if (other$yCoordinate != null) { return false; } } else if (!this$yCoordinate.equals(other$yCoordinate)) { 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 VersionProcessTreeVO; } public int hashCode() { Object $id = getId(); int result = (1 * 59) + ($id == null ? 43 : $id.hashCode()); Object $processId = getProcessId(); int result2 = (result * 59) + ($processId == null ? 43 : $processId.hashCode()); Object $processType = getProcessType(); int result3 = (result2 * 59) + ($processType == null ? 43 : $processType.hashCode()); Object $sort = getSort(); int result4 = (result3 * 59) + ($sort == null ? 43 : $sort.hashCode()); Object $parentId = getParentId(); int result5 = (result4 * 59) + ($parentId == null ? 43 : $parentId.hashCode()); Object $height = getHeight(); int result6 = (result5 * 59) + ($height == null ? 43 : $height.hashCode()); Object $hasChildren = getHasChildren(); int result7 = (result6 * 59) + ($hasChildren == null ? 43 : $hasChildren.hashCode()); Object $processCode = getProcessCode(); int result8 = (result7 * 59) + ($processCode == null ? 43 : $processCode.hashCode()); Object $processName = getProcessName(); int result9 = (result8 * 59) + ($processName == null ? 43 : $processName.hashCode()); Object $targetId = getTargetId(); int result10 = (result9 * 59) + ($targetId == null ? 43 : $targetId.hashCode()); Object $sourceId = getSourceId(); int result11 = (result10 * 59) + ($sourceId == null ? 43 : $sourceId.hashCode()); Object $xCoordinate = getXCoordinate(); int result12 = (result11 * 59) + ($xCoordinate == null ? 43 : $xCoordinate.hashCode()); Object $yCoordinate = getYCoordinate(); int result13 = (result12 * 59) + ($yCoordinate == null ? 43 : $yCoordinate.hashCode()); Object $children = getChildren(); return (result13 * 59) + ($children == null ? 43 : $children.hashCode()); } public String toString() { return "VersionProcessTreeVO(id=" + getId() + ", processId=" + getProcessId() + ", processCode=" + getProcessCode() + ", processName=" + getProcessName() + ", processType=" + getProcessType() + ", sort=" + getSort() + ", parentId=" + getParentId() + ", targetId=" + getTargetId() + ", sourceId=" + getSourceId() + ", xCoordinate=" + getXCoordinate() + ", yCoordinate=" + getYCoordinate() + ", height=" + getHeight() + ", children=" + getChildren() + ", hasChildren=" + getHasChildren() + ")"; } public Long getId() { return this.id; } public Long getProcessId() { return this.processId; } public String getProcessCode() { return this.processCode; } public String getProcessName() { return this.processName; } public Integer getProcessType() { return this.processType; } public Integer getSort() { return this.sort; } public Long getParentId() { return this.parentId; } public String getTargetId() { return this.targetId; } public String getSourceId() { return this.sourceId; } public String getXCoordinate() { return this.xCoordinate; } public String getYCoordinate() { return this.yCoordinate; } public Integer getHeight() { return this.height; } public Boolean getHasChildren() { return Boolean.valueOf(getChildren().size() > 0); } public List getChildren() { if (Func.isEmpty(this.children)) { this.children = Lists.newArrayList(); } return this.children; } }