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
package com.skyline.electricity.uwbentity;
 
public class Position
{
    private double latitude;
    private double x;
    private double y;
    private double z;
    private double nodeId;
    private double longitude;
    
    public double getLatitude() {
        return this.latitude;
    }
    
    public double getX() {
        return this.x;
    }
    
    public double getY() {
        return this.y;
    }
    
    public double getZ() {
        return this.z;
    }
    
    public double getNodeId() {
        return this.nodeId;
    }
    
    public double getLongitude() {
        return this.longitude;
    }
    
    public void setLatitude(final double latitude) {
        this.latitude = latitude;
    }
    
    public void setX(final double x) {
        this.x = x;
    }
    
    public void setY(final double y) {
        this.y = y;
    }
    
    public void setZ(final double z) {
        this.z = z;
    }
    
    public void setNodeId(final double nodeId) {
        this.nodeId = nodeId;
    }
    
    public void setLongitude(final double longitude) {
        this.longitude = longitude;
    }
    
    @Override
    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof Position)) {
            return false;
        }
        final Position other = (Position)o;
        return other.canEqual(this) && Double.compare(this.getLatitude(), other.getLatitude()) == 0 && Double.compare(this.getX(), other.getX()) == 0 && Double.compare(this.getY(), other.getY()) == 0 && Double.compare(this.getZ(), other.getZ()) == 0 && Double.compare(this.getNodeId(), other.getNodeId()) == 0 && Double.compare(this.getLongitude(), other.getLongitude()) == 0;
    }
    
    protected boolean canEqual(final Object other) {
        return other instanceof Position;
    }
    
    @Override
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final long $latitude = Double.doubleToLongBits(this.getLatitude());
        result = result * 59 + (int)($latitude >>> 32 ^ $latitude);
        final long $x = Double.doubleToLongBits(this.getX());
        result = result * 59 + (int)($x >>> 32 ^ $x);
        final long $y = Double.doubleToLongBits(this.getY());
        result = result * 59 + (int)($y >>> 32 ^ $y);
        final long $z = Double.doubleToLongBits(this.getZ());
        result = result * 59 + (int)($z >>> 32 ^ $z);
        final long $nodeId = Double.doubleToLongBits(this.getNodeId());
        result = result * 59 + (int)($nodeId >>> 32 ^ $nodeId);
        final long $longitude = Double.doubleToLongBits(this.getLongitude());
        result = result * 59 + (int)($longitude >>> 32 ^ $longitude);
        return result;
    }
    
    @Override
    public String toString() {
        return "Position(latitude=" + this.getLatitude() + ", x=" + this.getX() + ", y=" + this.getY() + ", z=" + this.getZ() + ", nodeId=" + this.getNodeId() + ", longitude=" + this.getLongitude() + ")";
    }
}