| | |
| | | |
| | | import java.io.Serializable; |
| | | import java.util.Date; |
| | | import java.util.Objects; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | |
| | | import javax.persistence.Column; |
| | |
| | | } |
| | | |
| | | @Override |
| | | public boolean equals(Object o) { |
| | | if (this == o) return true; |
| | | if (o == null || getClass() != o.getClass()) return false; |
| | | Batt_rtdata that = (Batt_rtdata) o; |
| | | return Float.compare(that.mon_JH_curr, mon_JH_curr) == 0 && Float.compare(that.mon_LY_vol, mon_LY_vol) == 0 && Objects.equals(num, that.num) && Objects.equals(battGroupId, that.battGroupId) && Objects.equals(rec_datetime, that.rec_datetime) && Objects.equals(mon_num, that.mon_num) && Objects.equals(mon_vol, that.mon_vol) && Objects.equals(mon_tmp, that.mon_tmp) && Objects.equals(mon_res, that.mon_res) && Objects.equals(mon_ser, that.mon_ser) && Objects.equals(mon_conn_res, that.mon_conn_res) && Objects.equals(mon_cap, that.mon_cap); |
| | | } |
| | | |
| | | @Override |
| | | public int hashCode() { |
| | | return Objects.hash(battGroupId, rec_datetime, mon_num, mon_vol, mon_tmp, mon_res, mon_ser, mon_conn_res, mon_cap, mon_JH_curr, mon_LY_vol); |
| | | } |
| | | |
| | | @Override |
| | | public String toString() { |
| | | return "Batt_rtdata{" + |
| | | "num=" + num + |