package com.qianwen.smartman.modules.cps.dto; import java.io.Serializable; /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/dto/DeviceSimpleDTO.class */ public class DeviceSimpleDTO implements Serializable { private Long deviceId; private String code; private String name; private Long deviceTypeId; private String deviceTypeName; private String machineModel; /* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/cps/dto/DeviceSimpleDTO$DeviceSimpleDTOBuilder.class */ public static class DeviceSimpleDTOBuilder { private Long deviceId; private String code; private String name; private Long deviceTypeId; private String deviceTypeName; private String machineModel; DeviceSimpleDTOBuilder() { } public DeviceSimpleDTOBuilder deviceId(final Long deviceId) { this.deviceId = deviceId; return this; } public DeviceSimpleDTOBuilder code(final String code) { this.code = code; return this; } public DeviceSimpleDTOBuilder name(final String name) { this.name = name; return this; } public DeviceSimpleDTOBuilder deviceTypeId(final Long deviceTypeId) { this.deviceTypeId = deviceTypeId; return this; } public DeviceSimpleDTOBuilder deviceTypeName(final String deviceTypeName) { this.deviceTypeName = deviceTypeName; return this; } public DeviceSimpleDTOBuilder machineModel(final String machineModel) { this.machineModel = machineModel; return this; } public DeviceSimpleDTO build() { return new DeviceSimpleDTO(this.deviceId, this.code, this.name, this.deviceTypeId, this.deviceTypeName, this.machineModel); } public String toString() { return "DeviceSimpleDTO.DeviceSimpleDTOBuilder(deviceId=" + this.deviceId + ", code=" + this.code + ", name=" + this.name + ", deviceTypeId=" + this.deviceTypeId + ", deviceTypeName=" + this.deviceTypeName + ", machineModel=" + this.machineModel + ")"; } } public void setDeviceId(final Long deviceId) { this.deviceId = deviceId; } public void setCode(final String code) { this.code = code; } public void setName(final String name) { this.name = name; } public void setDeviceTypeId(final Long deviceTypeId) { this.deviceTypeId = deviceTypeId; } public void setDeviceTypeName(final String deviceTypeName) { this.deviceTypeName = deviceTypeName; } public void setMachineModel(final String machineModel) { this.machineModel = machineModel; } public boolean equals(final Object o) { if (o == this) { return true; } if (o instanceof DeviceSimpleDTO) { DeviceSimpleDTO other = (DeviceSimpleDTO) o; if (other.canEqual(this)) { Object this$deviceId = getDeviceId(); Object other$deviceId = other.getDeviceId(); if (this$deviceId == null) { if (other$deviceId != null) { return false; } } else if (!this$deviceId.equals(other$deviceId)) { return false; } Object this$deviceTypeId = getDeviceTypeId(); Object other$deviceTypeId = other.getDeviceTypeId(); if (this$deviceTypeId == null) { if (other$deviceTypeId != null) { return false; } } else if (!this$deviceTypeId.equals(other$deviceTypeId)) { 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$name = getName(); Object other$name = other.getName(); if (this$name == null) { if (other$name != null) { return false; } } else if (!this$name.equals(other$name)) { return false; } Object this$deviceTypeName = getDeviceTypeName(); Object other$deviceTypeName = other.getDeviceTypeName(); if (this$deviceTypeName == null) { if (other$deviceTypeName != null) { return false; } } else if (!this$deviceTypeName.equals(other$deviceTypeName)) { return false; } Object this$machineModel = getMachineModel(); Object other$machineModel = other.getMachineModel(); return this$machineModel == null ? other$machineModel == null : this$machineModel.equals(other$machineModel); } return false; } return false; } protected boolean canEqual(final Object other) { return other instanceof DeviceSimpleDTO; } public int hashCode() { Object $deviceId = getDeviceId(); int result = (1 * 59) + ($deviceId == null ? 43 : $deviceId.hashCode()); Object $deviceTypeId = getDeviceTypeId(); int result2 = (result * 59) + ($deviceTypeId == null ? 43 : $deviceTypeId.hashCode()); Object $code = getCode(); int result3 = (result2 * 59) + ($code == null ? 43 : $code.hashCode()); Object $name = getName(); int result4 = (result3 * 59) + ($name == null ? 43 : $name.hashCode()); Object $deviceTypeName = getDeviceTypeName(); int result5 = (result4 * 59) + ($deviceTypeName == null ? 43 : $deviceTypeName.hashCode()); Object $machineModel = getMachineModel(); return (result5 * 59) + ($machineModel == null ? 43 : $machineModel.hashCode()); } public String toString() { return "DeviceSimpleDTO(deviceId=" + getDeviceId() + ", code=" + getCode() + ", name=" + getName() + ", deviceTypeId=" + getDeviceTypeId() + ", deviceTypeName=" + getDeviceTypeName() + ", machineModel=" + getMachineModel() + ")"; } public static DeviceSimpleDTOBuilder builder() { return new DeviceSimpleDTOBuilder(); } public DeviceSimpleDTO(final Long deviceId, final String code, final String name, final Long deviceTypeId, final String deviceTypeName, final String machineModel) { this.deviceId = deviceId; this.code = code; this.name = name; this.deviceTypeId = deviceTypeId; this.deviceTypeName = deviceTypeName; this.machineModel = machineModel; } public DeviceSimpleDTO() { } public Long getDeviceId() { return this.deviceId; } public String getCode() { return this.code; } public String getName() { return this.name; } public Long getDeviceTypeId() { return this.deviceTypeId; } public String getDeviceTypeName() { return this.deviceTypeName; } public String getMachineModel() { return this.machineModel; } }