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
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
package com.skyline.electricity.pojo;
 
import java.util.*;
 
public class Position
{
    private String interpolationAlgorithm;
    private String interpolationDegree;
    private String epoch;
    private List<Double> cartographicDegrees;
    
    public Position() {
        this.cartographicDegrees = new ArrayList<Double>();
    }
    
    public String getInterpolationAlgorithm() {
        return this.interpolationAlgorithm;
    }
    
    public String getInterpolationDegree() {
        return this.interpolationDegree;
    }
    
    public String getEpoch() {
        return this.epoch;
    }
    
    public List<Double> getCartographicDegrees() {
        return this.cartographicDegrees;
    }
    
    public void setInterpolationAlgorithm(final String interpolationAlgorithm) {
        this.interpolationAlgorithm = interpolationAlgorithm;
    }
    
    public void setInterpolationDegree(final String interpolationDegree) {
        this.interpolationDegree = interpolationDegree;
    }
    
    public void setEpoch(final String epoch) {
        this.epoch = epoch;
    }
    
    public void setCartographicDegrees(final List<Double> cartographicDegrees) {
        this.cartographicDegrees = cartographicDegrees;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof Position)) {
            return false;
        }
        final Position other = (Position)o;
        if (!other.canEqual(this)) {
            return false;
        }
        final Object this$interpolationAlgorithm = this.getInterpolationAlgorithm();
        final Object other$interpolationAlgorithm = other.getInterpolationAlgorithm();
        Label_0065: {
            if (this$interpolationAlgorithm == null) {
                if (other$interpolationAlgorithm == null) {
                    break Label_0065;
                }
            }
            else if (this$interpolationAlgorithm.equals(other$interpolationAlgorithm)) {
                break Label_0065;
            }
            return false;
        }
        final Object this$interpolationDegree = this.getInterpolationDegree();
        final Object other$interpolationDegree = other.getInterpolationDegree();
        Label_0102: {
            if (this$interpolationDegree == null) {
                if (other$interpolationDegree == null) {
                    break Label_0102;
                }
            }
            else if (this$interpolationDegree.equals(other$interpolationDegree)) {
                break Label_0102;
            }
            return false;
        }
        final Object this$epoch = this.getEpoch();
        final Object other$epoch = other.getEpoch();
        Label_0139: {
            if (this$epoch == null) {
                if (other$epoch == null) {
                    break Label_0139;
                }
            }
            else if (this$epoch.equals(other$epoch)) {
                break Label_0139;
            }
            return false;
        }
        final Object this$cartographicDegrees = this.getCartographicDegrees();
        final Object other$cartographicDegrees = other.getCartographicDegrees();
        if (this$cartographicDegrees == null) {
            if (other$cartographicDegrees == null) {
                return true;
            }
        }
        else if (this$cartographicDegrees.equals(other$cartographicDegrees)) {
            return true;
        }
        return false;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof Position;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $interpolationAlgorithm = this.getInterpolationAlgorithm();
        result = result * 59 + (($interpolationAlgorithm == null) ? 43 : $interpolationAlgorithm.hashCode());
        final Object $interpolationDegree = this.getInterpolationDegree();
        result = result * 59 + (($interpolationDegree == null) ? 43 : $interpolationDegree.hashCode());
        final Object $epoch = this.getEpoch();
        result = result * 59 + (($epoch == null) ? 43 : $epoch.hashCode());
        final Object $cartographicDegrees = this.getCartographicDegrees();
        result = result * 59 + (($cartographicDegrees == null) ? 43 : $cartographicDegrees.hashCode());
        return result;
    }
    
    @Override
    public String toString() {
        return "Position(interpolationAlgorithm=" + this.getInterpolationAlgorithm() + ", interpolationDegree=" + this.getInterpolationDegree() + ", epoch=" + this.getEpoch() + ", cartographicDegrees=" + this.getCartographicDegrees() + ")";
    }
}