yangys
2024-05-11 522dafb06be3374f27d087c370bcf06027e0f1cc
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
package com.qianwen.smartman.modules.mdc.entity;
 
import java.io.Serializable;
import java.sql.Timestamp;
/**
 * 设备报警
 */
public class SuperAlarm extends SuperAggregate implements Serializable {
    private static final long serialVersionUID = 1123326427413588953L;
    private Timestamp ts;
    private String code;
    private String message;
    private String level;
 
    public void setTs(final Timestamp ts) {
        this.ts = ts;
    }
 
    public void setCode(final String code) {
        this.code = code;
    }
 
    public void setMessage(final String message) {
        this.message = message;
    }
 
    public void setLevel(final String level) {
        this.level = level;
    }
 
    @Override // org.springblade.modules.mdc.entity.SuperAggregate
    public String toString() {
        return "SuperAlarm(ts=" + getTs() + ", code=" + getCode() + ", message=" + getMessage() + ", level=" + getLevel() + ")";
    }
 
    public SuperAlarm() {
    }
 
    public SuperAlarm(final Timestamp ts, final String code, final String message, final String level) {
        this.ts = ts;
        this.code = code;
        this.message = message;
        this.level = level;
    }
 
    @Override // org.springblade.modules.mdc.entity.SuperAggregate
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof SuperAlarm) {
            SuperAlarm other = (SuperAlarm) o;
            if (other.canEqual(this) && super.equals(o)) {
                Object this$ts = getTs();
                Object other$ts = other.getTs();
                if (this$ts == null) {
                    if (other$ts != null) {
                        return false;
                    }
                } else if (!this$ts.equals(other$ts)) {
                    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$message = getMessage();
                Object other$message = other.getMessage();
                if (this$message == null) {
                    if (other$message != null) {
                        return false;
                    }
                } else if (!this$message.equals(other$message)) {
                    return false;
                }
                Object this$level = getLevel();
                Object other$level = other.getLevel();
                return this$level == null ? other$level == null : this$level.equals(other$level);
            }
            return false;
        }
        return false;
    }
 
    @Override // org.springblade.modules.mdc.entity.SuperAggregate
    protected boolean canEqual(final Object other) {
        return other instanceof SuperAlarm;
    }
 
    @Override // org.springblade.modules.mdc.entity.SuperAggregate
    public int hashCode() {
        int result = super.hashCode();
        Object $ts = getTs();
        int result2 = (result * 59) + ($ts == null ? 43 : $ts.hashCode());
        Object $code = getCode();
        int result3 = (result2 * 59) + ($code == null ? 43 : $code.hashCode());
        Object $message = getMessage();
        int result4 = (result3 * 59) + ($message == null ? 43 : $message.hashCode());
        Object $level = getLevel();
        return (result4 * 59) + ($level == null ? 43 : $level.hashCode());
    }
 
    public Timestamp getTs() {
        return this.ts;
    }
 
    public String getCode() {
        return this.code;
    }
 
    public String getMessage() {
        return this.message;
    }
 
    public String getLevel() {
        return this.level;
    }
}