yangys
2024-04-02 6bed83e92f67954cd2135071133329f2205efe4f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
package com.qianwen.smartman.modules.report.dto;
 
import lombok.NonNull;
 
/* loaded from: blade-api.jar:BOOT-INF/classes/org/springblade/modules/report/dto/WorkstationShiftDTO.class */
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;
    }
}