package com.qianwen.smartman.modules.dnc.dto.serial;
|
|
import io.swagger.annotations.ApiModelProperty;
|
import java.io.Serializable;
|
|
public class SerialInfoDTO implements Serializable {
|
private static final long serialVersionUID = 8879727170289865165L;
|
@ApiModelProperty("串口名称")
|
private String serialName;
|
@ApiModelProperty("串口对应的设备名称")
|
private String deviceName;
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/dnc/dto/serial/SerialInfoDTO$SerialInfoDTOBuilder.class */
|
public static class SerialInfoDTOBuilder {
|
private String serialName;
|
private String deviceName;
|
|
SerialInfoDTOBuilder() {
|
}
|
|
public SerialInfoDTOBuilder serialName(final String serialName) {
|
this.serialName = serialName;
|
return this;
|
}
|
|
public SerialInfoDTOBuilder deviceName(final String deviceName) {
|
this.deviceName = deviceName;
|
return this;
|
}
|
|
public SerialInfoDTO build() {
|
return new SerialInfoDTO(this.serialName, this.deviceName);
|
}
|
|
public String toString() {
|
return "SerialInfoDTO.SerialInfoDTOBuilder(serialName=" + this.serialName + ", deviceName=" + this.deviceName + ")";
|
}
|
}
|
|
public void setSerialName(final String serialName) {
|
this.serialName = serialName;
|
}
|
|
public void setDeviceName(final String deviceName) {
|
this.deviceName = deviceName;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof SerialInfoDTO) {
|
SerialInfoDTO other = (SerialInfoDTO) o;
|
if (other.canEqual(this)) {
|
Object this$serialName = getSerialName();
|
Object other$serialName = other.getSerialName();
|
if (this$serialName == null) {
|
if (other$serialName != null) {
|
return false;
|
}
|
} else if (!this$serialName.equals(other$serialName)) {
|
return false;
|
}
|
Object this$deviceName = getDeviceName();
|
Object other$deviceName = other.getDeviceName();
|
return this$deviceName == null ? other$deviceName == null : this$deviceName.equals(other$deviceName);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof SerialInfoDTO;
|
}
|
|
public int hashCode() {
|
Object $serialName = getSerialName();
|
int result = (1 * 59) + ($serialName == null ? 43 : $serialName.hashCode());
|
Object $deviceName = getDeviceName();
|
return (result * 59) + ($deviceName == null ? 43 : $deviceName.hashCode());
|
}
|
|
public String toString() {
|
return "SerialInfoDTO(serialName=" + getSerialName() + ", deviceName=" + getDeviceName() + ")";
|
}
|
|
public static SerialInfoDTOBuilder builder() {
|
return new SerialInfoDTOBuilder();
|
}
|
|
public SerialInfoDTO() {
|
}
|
|
public SerialInfoDTO(final String serialName, final String deviceName) {
|
this.serialName = serialName;
|
this.deviceName = deviceName;
|
}
|
|
public String getSerialName() {
|
return this.serialName;
|
}
|
|
public String getDeviceName() {
|
return this.deviceName;
|
}
|
}
|