yangys
2024-11-02 f69073b835f1a0c66590130e1830edcdd75ebb8a
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
package com.qianwen.smartman.modules.mdc.dto;
 
import java.io.Serializable;
 
public class AlarmDTO implements Serializable {
    private static final long serialVersionUID = 4568550286435619112L;
    private String code;
    private String msg;
    private Long timestamp;
    private Integer level;
 
    
    public static class AlarmDTOBuilder {
        private String code;
        private String msg;
        private Long timestamp;
        private Integer level;
 
        AlarmDTOBuilder() {
        }
 
        public AlarmDTOBuilder code(final String code) {
            this.code = code;
            return this;
        }
 
        public AlarmDTOBuilder msg(final String msg) {
            this.msg = msg;
            return this;
        }
 
        public AlarmDTOBuilder timestamp(final Long timestamp) {
            this.timestamp = timestamp;
            return this;
        }
 
        public AlarmDTOBuilder level(final Integer level) {
            this.level = level;
            return this;
        }
 
        public AlarmDTO build() {
            return new AlarmDTO(this.code, this.msg, this.timestamp, this.level);
        }
 
        public String toString() {
            return "AlarmDTO.AlarmDTOBuilder(code=" + this.code + ", msg=" + this.msg + ", timestamp=" + this.timestamp + ", level=" + this.level + ")";
        }
    }
 
    public void setCode(final String code) {
        this.code = code;
    }
 
    public void setMsg(final String msg) {
        this.msg = msg;
    }
 
    public void setTimestamp(final Long timestamp) {
        this.timestamp = timestamp;
    }
 
    public void setLevel(final Integer level) {
        this.level = level;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof AlarmDTO) {
            AlarmDTO other = (AlarmDTO) o;
            if (other.canEqual(this)) {
                Object this$timestamp = getTimestamp();
                Object other$timestamp = other.getTimestamp();
                if (this$timestamp == null) {
                    if (other$timestamp != null) {
                        return false;
                    }
                } else if (!this$timestamp.equals(other$timestamp)) {
                    return false;
                }
                Object this$level = getLevel();
                Object other$level = other.getLevel();
                if (this$level == null) {
                    if (other$level != null) {
                        return false;
                    }
                } else if (!this$level.equals(other$level)) {
                    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$msg = getMsg();
                Object other$msg = other.getMsg();
                return this$msg == null ? other$msg == null : this$msg.equals(other$msg);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof AlarmDTO;
    }
 
    public int hashCode() {
        Object $timestamp = getTimestamp();
        int result = (1 * 59) + ($timestamp == null ? 43 : $timestamp.hashCode());
        Object $level = getLevel();
        int result2 = (result * 59) + ($level == null ? 43 : $level.hashCode());
        Object $code = getCode();
        int result3 = (result2 * 59) + ($code == null ? 43 : $code.hashCode());
        Object $msg = getMsg();
        return (result3 * 59) + ($msg == null ? 43 : $msg.hashCode());
    }
 
    public String toString() {
        return "AlarmDTO(code=" + getCode() + ", msg=" + getMsg() + ", timestamp=" + getTimestamp() + ", level=" + getLevel() + ")";
    }
 
    public static AlarmDTOBuilder builder() {
        return new AlarmDTOBuilder();
    }
 
    public AlarmDTO() {
    }
 
    public AlarmDTO(final String code, final String msg, final Long timestamp, final Integer level) {
        this.code = code;
        this.msg = msg;
        this.timestamp = timestamp;
        this.level = level;
    }
 
    public String getCode() {
        return this.code;
    }
 
    public String getMsg() {
        return this.msg;
    }
 
    public Long getTimestamp() {
        return this.timestamp;
    }
 
    public Integer getLevel() {
        return this.level;
    }
}