package com.qianwen.smartman.modules.mdc.vo;
|
|
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
|
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
|
import com.fasterxml.jackson.datatype.jsr310.deser.LocalDateDeserializer;
|
import com.fasterxml.jackson.datatype.jsr310.ser.LocalDateSerializer;
|
import java.io.Serializable;
|
import java.time.LocalDate;
|
import javax.validation.constraints.NotNull;
|
|
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/mdc/vo/CrossDayStateVO.class */
|
public class CrossDayStateVO implements Serializable {
|
private static final long serialVersionUID = 8284093134149844323L;
|
@NotNull(message = "时间不能为空")
|
@JsonSerialize(using = LocalDateSerializer.class)
|
@JsonDeserialize(using = LocalDateDeserializer.class)
|
private LocalDate date;
|
|
@JsonDeserialize(using = LocalDateDeserializer.class)
|
public void setDate(final LocalDate date) {
|
this.date = date;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof CrossDayStateVO) {
|
CrossDayStateVO other = (CrossDayStateVO) o;
|
if (other.canEqual(this)) {
|
Object this$date = getDate();
|
Object other$date = other.getDate();
|
return this$date == null ? other$date == null : this$date.equals(other$date);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof CrossDayStateVO;
|
}
|
|
public int hashCode() {
|
Object $date = getDate();
|
int result = (1 * 59) + ($date == null ? 43 : $date.hashCode());
|
return result;
|
}
|
|
public String toString() {
|
return "CrossDayStateVO(date=" + getDate() + ")";
|
}
|
|
public LocalDate getDate() {
|
return this.date;
|
}
|
}
|