package com.qianwen.smartman.modules.report.dto;
|
|
import lombok.NonNull;
|
|
|
public class WorkstationShiftDTO extends WorkstationDataDTO {
|
private String shiftName;
|
@NonNull
|
private Integer shiftIndex;
|
private String shiftDate;
|
|
@Override // org.springblade.modules.report.dto.WorkstationDataDTO
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof WorkstationShiftDTO) {
|
WorkstationShiftDTO other = (WorkstationShiftDTO) o;
|
if (other.canEqual(this) && super.equals(o)) {
|
Object this$shiftIndex = getShiftIndex();
|
Object other$shiftIndex = other.getShiftIndex();
|
if (this$shiftIndex == null) {
|
if (other$shiftIndex != null) {
|
return false;
|
}
|
} else if (!this$shiftIndex.equals(other$shiftIndex)) {
|
return false;
|
}
|
Object this$shiftName = getShiftName();
|
Object other$shiftName = other.getShiftName();
|
if (this$shiftName == null) {
|
if (other$shiftName != null) {
|
return false;
|
}
|
} else if (!this$shiftName.equals(other$shiftName)) {
|
return false;
|
}
|
Object this$shiftDate = getShiftDate();
|
Object other$shiftDate = other.getShiftDate();
|
return this$shiftDate == null ? other$shiftDate == null : this$shiftDate.equals(other$shiftDate);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
@Override // org.springblade.modules.report.dto.WorkstationDataDTO
|
protected boolean canEqual(final Object other) {
|
return other instanceof WorkstationShiftDTO;
|
}
|
|
@Override // org.springblade.modules.report.dto.WorkstationDataDTO
|
public int hashCode() {
|
int result = super.hashCode();
|
Object $shiftIndex = getShiftIndex();
|
int result2 = (result * 59) + ($shiftIndex == null ? 43 : $shiftIndex.hashCode());
|
Object $shiftName = getShiftName();
|
int result3 = (result2 * 59) + ($shiftName == null ? 43 : $shiftName.hashCode());
|
Object $shiftDate = getShiftDate();
|
return (result3 * 59) + ($shiftDate == null ? 43 : $shiftDate.hashCode());
|
}
|
|
public WorkstationShiftDTO setShiftName(final String shiftName) {
|
this.shiftName = shiftName;
|
return this;
|
}
|
|
public WorkstationShiftDTO setShiftIndex(@NonNull final Integer shiftIndex) {
|
if (shiftIndex == null) {
|
throw new NullPointerException("shiftIndex is marked non-null but is null");
|
}
|
this.shiftIndex = shiftIndex;
|
return this;
|
}
|
|
public WorkstationShiftDTO setShiftDate(final String shiftDate) {
|
this.shiftDate = shiftDate;
|
return this;
|
}
|
|
private WorkstationShiftDTO(@NonNull final Integer shiftIndex) {
|
if (shiftIndex == null) {
|
throw new NullPointerException("shiftIndex is marked non-null but is null");
|
}
|
this.shiftIndex = shiftIndex;
|
}
|
|
public static WorkstationShiftDTO of(@NonNull final Integer shiftIndex) {
|
return new WorkstationShiftDTO(shiftIndex);
|
}
|
|
public WorkstationShiftDTO() {
|
}
|
|
public String getShiftName() {
|
return this.shiftName;
|
}
|
|
@NonNull
|
public Integer getShiftIndex() {
|
return this.shiftIndex;
|
}
|
|
public String getShiftDate() {
|
return this.shiftDate;
|
}
|
}
|