yangys
2024-05-07 9b677ea5c6978788d135fc15da3d78c5a93789c2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
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;
    }
}