yangys
2024-10-30 25db770e621f1259b8d5b7fd514207f7481c2d0f
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
package com.qianwen.smartman.common.websocket.entity;
 
import com.alibaba.fastjson.annotation.JSONField;
import java.util.Date;
import com.qianwen.smartman.common.constant.DateConstant;
 
public class Alarm {
    private int alarmNum;
    @JSONField(format = DateConstant.PATTERN_DATE_TIME)
    private Date alarmTime;
 
    public void setAlarmNum(final int alarmNum) {
        this.alarmNum = alarmNum;
    }
 
    public void setAlarmTime(final Date alarmTime) {
        this.alarmTime = alarmTime;
    }
 
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (o instanceof Alarm) {
            Alarm other = (Alarm) o;
            if (other.canEqual(this) && getAlarmNum() == other.getAlarmNum()) {
                Object this$alarmTime = getAlarmTime();
                Object other$alarmTime = other.getAlarmTime();
                return this$alarmTime == null ? other$alarmTime == null : this$alarmTime.equals(other$alarmTime);
            }
            return false;
        }
        return false;
    }
 
    protected boolean canEqual(final Object other) {
        return other instanceof Alarm;
    }
 
    public int hashCode() {
        int result = (1 * 59) + getAlarmNum();
        Object $alarmTime = getAlarmTime();
        return (result * 59) + ($alarmTime == null ? 43 : $alarmTime.hashCode());
    }
 
    public String toString() {
        return "Alarm(alarmNum=" + getAlarmNum() + ", alarmTime=" + getAlarmTime() + ")";
    }
 
    public int getAlarmNum() {
        return this.alarmNum;
    }
 
    public Date getAlarmTime() {
        return this.alarmTime;
    }
}