
com.nedap.retail.messages.organization.Address Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of messages Show documentation
Show all versions of messages Show documentation
Client and messages for communicating with the Nedap Retail APIs
The newest version!
package com.nedap.retail.messages.organization;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonProperty;
public class Address implements Serializable {
private static final long serialVersionUID = -1023613965561621788L;
public String address;
public String zipcode;
public String city;
@JsonProperty("country_code")
public String countryCode;
public Double latitude;
public Double longitude;
public Address() {
}
public Address(final String address, final String zipcode, final String city, final String countryCode,
final Double latitude, final Double longitude) {
this.address = address;
this.zipcode = zipcode;
this.city = city;
this.countryCode = countryCode;
this.latitude = latitude;
this.longitude = longitude;
}
@Override
public int hashCode() {
final int prime = 31;
int result = 1;
result = prime * result + (address == null ? 0 : address.hashCode());
result = prime * result + (city == null ? 0 : city.hashCode());
result = prime * result + (countryCode == null ? 0 : countryCode.hashCode());
result = prime * result + (latitude == null ? 0 : latitude.hashCode());
result = prime * result + (longitude == null ? 0 : longitude.hashCode());
result = prime * result + (zipcode == null ? 0 : zipcode.hashCode());
return result;
}
@Override
public boolean equals(final Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (getClass() != obj.getClass()) {
return false;
}
final Address other = (Address) obj;
if (address == null) {
if (other.address != null) {
return false;
}
} else if (!address.equals(other.address)) {
return false;
}
if (city == null) {
if (other.city != null) {
return false;
}
} else if (!city.equals(other.city)) {
return false;
}
if (countryCode == null) {
if (other.countryCode != null) {
return false;
}
} else if (!countryCode.equals(other.countryCode)) {
return false;
}
if (latitude == null) {
if (other.latitude != null) {
return false;
}
} else if (!latitude.equals(other.latitude)) {
return false;
}
if (longitude == null) {
if (other.longitude != null) {
return false;
}
} else if (!longitude.equals(other.longitude)) {
return false;
}
if (zipcode == null) {
if (other.zipcode != null) {
return false;
}
} else if (!zipcode.equals(other.zipcode)) {
return false;
}
return true;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy