package com.qianwen.smartman.common.websocket.entity; import io.swagger.annotations.ApiModelProperty; import java.io.Serializable; public class FmsAreaLocation implements Serializable { private String code; @ApiModelProperty("托盘编码") private String palletCode; private String color; @ApiModelProperty("托盘状态") private Integer state; private String id; public void setCode(final String code) { this.code = code; } public void setPalletCode(final String palletCode) { this.palletCode = palletCode; } public void setColor(final String color) { this.color = color; } public void setState(final Integer state) { this.state = state; } public void setId(final String id) { this.id = id; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof FmsAreaLocation) { FmsAreaLocation other = (FmsAreaLocation) o; if (other.canEqual(this)) { Object this$state = getState(); Object other$state = other.getState(); if (this$state == null) { if (other$state != null) { return false; } } else if (!this$state.equals(other$state)) { return false; } Object this$code = getCode(); Object other$code = other.getCode(); if (this$code == null) { if (other$code != null) { return false; } } else if (!this$code.equals(other$code)) { return false; } Object this$palletCode = getPalletCode(); Object other$palletCode = other.getPalletCode(); if (this$palletCode == null) { if (other$palletCode != null) { return false; } } else if (!this$palletCode.equals(other$palletCode)) { return false; } Object this$color = getColor(); Object other$color = other.getColor(); if (this$color == null) { if (other$color != null) { return false; } } else if (!this$color.equals(other$color)) { return false; } Object this$id = getId(); Object other$id = other.getId(); return this$id == null ? other$id == null : this$id.equals(other$id); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof FmsAreaLocation; } public int hashCode() { Object $state = getState(); int result = (1 * 59) + ($state == null ? 43 : $state.hashCode()); Object $code = getCode(); int result2 = (result * 59) + ($code == null ? 43 : $code.hashCode()); Object $palletCode = getPalletCode(); int result3 = (result2 * 59) + ($palletCode == null ? 43 : $palletCode.hashCode()); Object $color = getColor(); int result4 = (result3 * 59) + ($color == null ? 43 : $color.hashCode()); Object $id = getId(); return (result4 * 59) + ($id == null ? 43 : $id.hashCode()); } public String toString() { return "FmsAreaLocation(code=" + getCode() + ", palletCode=" + getPalletCode() + ", color=" + getColor() + ", state=" + getState() + ", id=" + getId() + ")"; } public String getCode() { return this.code; } public String getPalletCode() { return this.palletCode; } public String getColor() { return this.color; } public Integer getState() { return this.state; } public String getId() { return this.id; } }