latitude and longitude removed
This commit is contained in:
parent
b9e2298ca9
commit
e5c0b8a23d
|
@ -16,10 +16,6 @@ public class Site {
|
||||||
@NotNull
|
@NotNull
|
||||||
String location;
|
String location;
|
||||||
|
|
||||||
String latitude;
|
|
||||||
|
|
||||||
String longitude;
|
|
||||||
|
|
||||||
public String getCountry() {
|
public String getCountry() {
|
||||||
return country;
|
return country;
|
||||||
}
|
}
|
||||||
|
@ -36,30 +32,12 @@ public class Site {
|
||||||
this.location = location;
|
this.location = location;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getLatitude() {
|
|
||||||
return latitude;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLatitude(String latitude) {
|
|
||||||
this.latitude = latitude;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getLongitude() {
|
|
||||||
return longitude;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setLongitude(String longitude) {
|
|
||||||
this.longitude = longitude;
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int hashCode() {
|
public int hashCode() {
|
||||||
final int prime = 31;
|
final int prime = 31;
|
||||||
int result = 1;
|
int result = 1;
|
||||||
result = prime * result + ((country == null) ? 0 : country.hashCode());
|
result = prime * result + ((country == null) ? 0 : country.hashCode());
|
||||||
result = prime * result + ((latitude == null) ? 0 : latitude.hashCode());
|
|
||||||
result = prime * result + ((location == null) ? 0 : location.hashCode());
|
result = prime * result + ((location == null) ? 0 : location.hashCode());
|
||||||
result = prime * result + ((longitude == null) ? 0 : longitude.hashCode());
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,24 +55,12 @@ public class Site {
|
||||||
return false;
|
return false;
|
||||||
} else if (!country.equals(other.country))
|
} else if (!country.equals(other.country))
|
||||||
return false;
|
return false;
|
||||||
if (latitude == null) {
|
|
||||||
if (other.latitude != null)
|
|
||||||
return false;
|
|
||||||
} else if (!latitude.equals(other.latitude))
|
|
||||||
return false;
|
|
||||||
if (location == null) {
|
if (location == null) {
|
||||||
if (other.location != null)
|
if (other.location != null)
|
||||||
return false;
|
return false;
|
||||||
} else if (!location.equals(other.location))
|
} else if (!location.equals(other.location))
|
||||||
return false;
|
return false;
|
||||||
if (longitude == null) {
|
|
||||||
if (other.longitude != null)
|
|
||||||
return false;
|
|
||||||
} else if (!longitude.equals(other.longitude))
|
|
||||||
return false;
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
Loading…
Reference in New Issue