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; } }