package com.qianwen.smartman.modules.cps.vo; import java.io.Serializable; import javax.validation.constraints.NotEmpty; import javax.validation.constraints.NotNull; public class WorkstationWcsUsageVO implements Serializable { private String id; @NotNull(message = "{workstation.wcs.usage.collectType.notnull}") private Integer collectType; @NotEmpty(message = "{workstation.wcs.usage.usageName.notnull}") private String usageName; @NotNull.List({@NotNull, @NotNull(message = "{workstation.wcs.usage.usageCode.notnull}")}) private String usageCode; private String dataTypeDesc; private String parameter; public void setId(final String id) { this.id = id; } public void setCollectType(final Integer collectType) { this.collectType = collectType; } public void setUsageName(final String usageName) { this.usageName = usageName; } public void setUsageCode(final String usageCode) { this.usageCode = usageCode; } public void setDataTypeDesc(final String dataTypeDesc) { this.dataTypeDesc = dataTypeDesc; } public void setParameter(final String parameter) { this.parameter = parameter; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof WorkstationWcsUsageVO) { WorkstationWcsUsageVO other = (WorkstationWcsUsageVO) o; if (other.canEqual(this)) { Object this$collectType = getCollectType(); Object other$collectType = other.getCollectType(); if (this$collectType == null) { if (other$collectType != null) { return false; } } else if (!this$collectType.equals(other$collectType)) { return false; } 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$usageName = getUsageName(); Object other$usageName = other.getUsageName(); if (this$usageName == null) { if (other$usageName != null) { return false; } } else if (!this$usageName.equals(other$usageName)) { return false; } Object this$usageCode = getUsageCode(); Object other$usageCode = other.getUsageCode(); if (this$usageCode == null) { if (other$usageCode != null) { return false; } } else if (!this$usageCode.equals(other$usageCode)) { return false; } Object this$dataTypeDesc = getDataTypeDesc(); Object other$dataTypeDesc = other.getDataTypeDesc(); if (this$dataTypeDesc == null) { if (other$dataTypeDesc != null) { return false; } } else if (!this$dataTypeDesc.equals(other$dataTypeDesc)) { return false; } Object this$parameter = getParameter(); Object other$parameter = other.getParameter(); return this$parameter == null ? other$parameter == null : this$parameter.equals(other$parameter); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof WorkstationWcsUsageVO; } public int hashCode() { Object $collectType = getCollectType(); int result = (1 * 59) + ($collectType == null ? 43 : $collectType.hashCode()); Object $id = getId(); int result2 = (result * 59) + ($id == null ? 43 : $id.hashCode()); Object $usageName = getUsageName(); int result3 = (result2 * 59) + ($usageName == null ? 43 : $usageName.hashCode()); Object $usageCode = getUsageCode(); int result4 = (result3 * 59) + ($usageCode == null ? 43 : $usageCode.hashCode()); Object $dataTypeDesc = getDataTypeDesc(); int result5 = (result4 * 59) + ($dataTypeDesc == null ? 43 : $dataTypeDesc.hashCode()); Object $parameter = getParameter(); return (result5 * 59) + ($parameter == null ? 43 : $parameter.hashCode()); } public String toString() { return "WorkstationWcsUsageVO(id=" + getId() + ", collectType=" + getCollectType() + ", usageName=" + getUsageName() + ", usageCode=" + getUsageCode() + ", dataTypeDesc=" + getDataTypeDesc() + ", parameter=" + getParameter() + ")"; } public String getId() { return this.id; } public Integer getCollectType() { return this.collectType; } public String getUsageName() { return this.usageName; } public String getUsageCode() { return this.usageCode; } public String getDataTypeDesc() { return this.dataTypeDesc; } public String getParameter() { return this.parameter; } }