package com.qianwen.smartman.modules.mdc.dto;
|
|
import io.swagger.annotations.ApiModelProperty;
|
|
public class MixShiftDetailsDTO {
|
@ApiModelProperty("班次下标")
|
private Integer shiftIndex;
|
@ApiModelProperty("班次名称")
|
private String indexName;
|
@ApiModelProperty("混合班次 true-是 false-不是")
|
private Boolean mixShift;
|
|
|
public static class MixShiftDetailsDTOBuilder {
|
private Integer shiftIndex;
|
private String indexName;
|
private Boolean mixShift;
|
|
MixShiftDetailsDTOBuilder() {
|
}
|
|
public MixShiftDetailsDTOBuilder shiftIndex(final Integer shiftIndex) {
|
this.shiftIndex = shiftIndex;
|
return this;
|
}
|
|
public MixShiftDetailsDTOBuilder indexName(final String indexName) {
|
this.indexName = indexName;
|
return this;
|
}
|
|
public MixShiftDetailsDTOBuilder mixShift(final Boolean mixShift) {
|
this.mixShift = mixShift;
|
return this;
|
}
|
|
public MixShiftDetailsDTO build() {
|
return new MixShiftDetailsDTO(this.shiftIndex, this.indexName, this.mixShift);
|
}
|
|
public String toString() {
|
return "MixShiftDetailsDTO.MixShiftDetailsDTOBuilder(shiftIndex=" + this.shiftIndex + ", indexName=" + this.indexName + ", mixShift=" + this.mixShift + ")";
|
}
|
}
|
|
public void setShiftIndex(final Integer shiftIndex) {
|
this.shiftIndex = shiftIndex;
|
}
|
|
public void setIndexName(final String indexName) {
|
this.indexName = indexName;
|
}
|
|
public void setMixShift(final Boolean mixShift) {
|
this.mixShift = mixShift;
|
}
|
|
public boolean equals(final Object o) {
|
if (o == this) {
|
return true;
|
}
|
if (o instanceof MixShiftDetailsDTO) {
|
MixShiftDetailsDTO other = (MixShiftDetailsDTO) o;
|
if (other.canEqual(this)) {
|
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$mixShift = getMixShift();
|
Object other$mixShift = other.getMixShift();
|
if (this$mixShift == null) {
|
if (other$mixShift != null) {
|
return false;
|
}
|
} else if (!this$mixShift.equals(other$mixShift)) {
|
return false;
|
}
|
Object this$indexName = getIndexName();
|
Object other$indexName = other.getIndexName();
|
return this$indexName == null ? other$indexName == null : this$indexName.equals(other$indexName);
|
}
|
return false;
|
}
|
return false;
|
}
|
|
protected boolean canEqual(final Object other) {
|
return other instanceof MixShiftDetailsDTO;
|
}
|
|
public int hashCode() {
|
Object $shiftIndex = getShiftIndex();
|
int result = (1 * 59) + ($shiftIndex == null ? 43 : $shiftIndex.hashCode());
|
Object $mixShift = getMixShift();
|
int result2 = (result * 59) + ($mixShift == null ? 43 : $mixShift.hashCode());
|
Object $indexName = getIndexName();
|
return (result2 * 59) + ($indexName == null ? 43 : $indexName.hashCode());
|
}
|
|
public String toString() {
|
return "MixShiftDetailsDTO(shiftIndex=" + getShiftIndex() + ", indexName=" + getIndexName() + ", mixShift=" + getMixShift() + ")";
|
}
|
|
public static MixShiftDetailsDTOBuilder builder() {
|
return new MixShiftDetailsDTOBuilder();
|
}
|
|
public MixShiftDetailsDTO() {
|
}
|
|
public MixShiftDetailsDTO(final Integer shiftIndex, final String indexName, final Boolean mixShift) {
|
this.shiftIndex = shiftIndex;
|
this.indexName = indexName;
|
this.mixShift = mixShift;
|
}
|
|
public Integer getShiftIndex() {
|
return this.shiftIndex;
|
}
|
|
public String getIndexName() {
|
return this.indexName;
|
}
|
|
public Boolean getMixShift() {
|
return this.mixShift;
|
}
|
}
|