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() + ")"; } }