leutu
2024-05-08 543e4eb01ca210b20876e8139cb3d0403d7d065c
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
108
109
110
111
112
113
package com.skyline.electricity.pojo;
 
public class Path
{
    private boolean show;
    private int width;
    private Material material;
    private int resolution;
    private int leadTime;
    private int trailTime;
    
    public boolean isShow() {
        return this.show;
    }
    
    public int getWidth() {
        return this.width;
    }
    
    public Material getMaterial() {
        return this.material;
    }
    
    public int getResolution() {
        return this.resolution;
    }
    
    public int getLeadTime() {
        return this.leadTime;
    }
    
    public int getTrailTime() {
        return this.trailTime;
    }
    
    public void setShow(final boolean show) {
        this.show = show;
    }
    
    public void setWidth(final int width) {
        this.width = width;
    }
    
    public void setMaterial(final Material material) {
        this.material = material;
    }
    
    public void setResolution(final int resolution) {
        this.resolution = resolution;
    }
    
    public void setLeadTime(final int leadTime) {
        this.leadTime = leadTime;
    }
    
    public void setTrailTime(final int trailTime) {
        this.trailTime = trailTime;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof Path)) {
            return false;
        }
        final Path other = (Path)o;
        if (!other.canEqual(this)) {
            return false;
        }
        if (this.isShow() != other.isShow()) {
            return false;
        }
        if (this.getWidth() != other.getWidth()) {
            return false;
        }
        final Object this$material = this.getMaterial();
        final Object other$material = other.getMaterial();
        if (this$material == null) {
            if (other$material == null) {
                return this.getResolution() == other.getResolution() && this.getLeadTime() == other.getLeadTime() && this.getTrailTime() == other.getTrailTime();
            }
        }
        else if (this$material.equals(other$material)) {
            return this.getResolution() == other.getResolution() && this.getLeadTime() == other.getLeadTime() && this.getTrailTime() == other.getTrailTime();
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof Path;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        result = result * 59 + (this.isShow() ? 79 : 97);
        result = result * 59 + this.getWidth();
        final Object $material = this.getMaterial();
        result = result * 59 + (($material == null) ? 43 : $material.hashCode());
        result = result * 59 + this.getResolution();
        result = result * 59 + this.getLeadTime();
        result = result * 59 + this.getTrailTime();
        return result;
    }
    
    @Override
    public String toString() {
        return "Path(show=" + this.isShow() + ", width=" + this.getWidth() + ", material=" + this.getMaterial() + ", resolution=" + this.getResolution() + ", leadTime=" + this.getLeadTime() + ", trailTime=" + this.getTrailTime() + ")";
    }
}