package com.qianwen.smartman.modules.mdc.dto;
|
|
import java.io.Serializable;
|
|
public class TimeDTO implements Serializable {
|
private static final long serialVersionUID = -3851767521941943590L;
|
private Long startTime;
|
private Long endTime;
|
|
|
public static class TimeDTOBuilder {
|
private Long startTime;
|
private Long endTime;
|
|
TimeDTOBuilder() {
|
}
|
|
public TimeDTOBuilder startTime(final Long startTime) {
|
this.startTime = startTime;
|
return this;
|
}
|
|
public TimeDTOBuilder endTime(final Long endTime) {
|
this.endTime = endTime;
|
return this;
|
}
|
|
public TimeDTO build() {
|
return new TimeDTO(this.startTime, this.endTime);
|
}
|
|
public String toString() {
|
return "TimeDTO.TimeDTOBuilder(startTime=" + this.startTime + ", endTime=" + this.endTime + ")";
|
}
|
}
|
|
public void setStartTime(final Long startTime) {
|
this.startTime = startTime;
|
}
|
|
public void setEndTime(final Long endTime) {
|
this.endTime = endTime;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof TimeDTO) {
|
TimeDTO other = (TimeDTO) o;
|
if (other.canEqual(this)) {
|
Object this$startTime = getStartTime();
|
Object other$startTime = other.getStartTime();
|
if (this$startTime == null) {
|
if (other$startTime != null) {
|
return false;
|
}
|
} else if (!this$startTime.equals(other$startTime)) {
|
return false;
|
}
|
Object this$endTime = getEndTime();
|
Object other$endTime = other.getEndTime();
|
return this$endTime == null ? other$endTime == null : this$endTime.equals(other$endTime);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof TimeDTO;
|
}
|
|
public int hashCode() {
|
Object $startTime = getStartTime();
|
int result = (1 * 59) + ($startTime == null ? 43 : $startTime.hashCode());
|
Object $endTime = getEndTime();
|
return (result * 59) + ($endTime == null ? 43 : $endTime.hashCode());
|
}
|
|
public String toString() {
|
return "TimeDTO(startTime=" + getStartTime() + ", endTime=" + getEndTime() + ")";
|
}
|
|
public static TimeDTOBuilder builder() {
|
return new TimeDTOBuilder();
|
}
|
|
public TimeDTO() {
|
}
|
|
public TimeDTO(final Long startTime, final Long endTime) {
|
this.startTime = startTime;
|
this.endTime = endTime;
|
}
|
|
public Long getStartTime() {
|
return this.startTime;
|
}
|
|
public Long getEndTime() {
|
return this.endTime;
|
}
|
}
|