@Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;

        if (obj == null)
            return false;

        if (getClass() != obj.getClass())
            return false;

        Location other = (Location) obj;
        if (cityName == null) {
            if (other.cityName != null) return false;
        } else
        if (!cityName.equals(other.cityName)) return false;
        if (country == null) {
            if (other.country != null) return false;
        } else
        if (!country.equals(other.country)) return false;

        return true;
    }