package com.qianwen.smartman.modules.smis.vo; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; import java.util.List; import javax.validation.constraints.NotNull; public class ChildProcessVO implements Serializable { private static final long serialVersionUID = -9025650813540985793L; @NotNull(message = "主序id不能为空") @ApiModelProperty(value = "主序id", dataType = "java.lang.String") private Long mainId; @NotNull(message = "工艺版本id不能为空") @ApiModelProperty(value = "版本id", dataType = "java.lang.String") private Long versionId; @ApiModelProperty("主序所在的顺序") private Integer sort; @ApiModelProperty("子序信息") private List childProcess; public void setMainId(final Long mainId) { this.mainId = mainId; } public void setVersionId(final Long versionId) { this.versionId = versionId; } public void setSort(final Integer sort) { this.sort = sort; } public void setChildProcess(final List childProcess) { this.childProcess = childProcess; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof ChildProcessVO) { ChildProcessVO other = (ChildProcessVO) o; if (other.canEqual(this)) { Object this$mainId = getMainId(); Object other$mainId = other.getMainId(); if (this$mainId == null) { if (other$mainId != null) { return false; } } else if (!this$mainId.equals(other$mainId)) { return false; } Object this$versionId = getVersionId(); Object other$versionId = other.getVersionId(); if (this$versionId == null) { if (other$versionId != null) { return false; } } else if (!this$versionId.equals(other$versionId)) { 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$childProcess = getChildProcess(); Object other$childProcess = other.getChildProcess(); return this$childProcess == null ? other$childProcess == null : this$childProcess.equals(other$childProcess); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof ChildProcessVO; } public int hashCode() { Object $mainId = getMainId(); int result = (1 * 59) + ($mainId == null ? 43 : $mainId.hashCode()); Object $versionId = getVersionId(); int result2 = (result * 59) + ($versionId == null ? 43 : $versionId.hashCode()); Object $sort = getSort(); int result3 = (result2 * 59) + ($sort == null ? 43 : $sort.hashCode()); Object $childProcess = getChildProcess(); return (result3 * 59) + ($childProcess == null ? 43 : $childProcess.hashCode()); } public String toString() { return "ChildProcessVO(mainId=" + getMainId() + ", versionId=" + getVersionId() + ", sort=" + getSort() + ", childProcess=" + getChildProcess() + ")"; } public Long getMainId() { return this.mainId; } public Long getVersionId() { return this.versionId; } public Integer getSort() { return this.sort; } public List getChildProcess() { return this.childProcess; } }