@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getContinentCode() == null) ? 0 : getContinentCode().hashCode()); hashCode = prime * hashCode + ((getContinentName() == null) ? 0 : getContinentName().hashCode()); hashCode = prime * hashCode + ((getCountryCode() == null) ? 0 : getCountryCode().hashCode()); hashCode = prime * hashCode + ((getCountryName() == null) ? 0 : getCountryName().hashCode()); hashCode = prime * hashCode + ((getSubdivisionCode() == null) ? 0 : getSubdivisionCode().hashCode()); hashCode = prime * hashCode + ((getSubdivisionName() == null) ? 0 : getSubdivisionName().hashCode()); return hashCode; }
/** * <p> * The two-letter code for the continent. * </p> * * @param continentCode * The two-letter code for the continent. * @return Returns a reference to this object so that method calls can be chained together. */ public GeoLocationDetails withContinentCode(String continentCode) { setContinentCode(continentCode); return this; }
public GeoLocationDetails unmarshall(StaxUnmarshallerContext context) throws Exception { GeoLocationDetails geoLocationDetails = new GeoLocationDetails(); int originalDepth = context.getCurrentDepth(); int targetDepth = originalDepth + 1; geoLocationDetails.setContinentCode(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; geoLocationDetails.setContinentName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; geoLocationDetails.setCountryCode(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; geoLocationDetails.setCountryName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; geoLocationDetails.setSubdivisionCode(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue; geoLocationDetails.setSubdivisionName(StringStaxUnmarshaller.getInstance().unmarshall(context)); continue;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGeoLocationDetails() == null) ? 0 : getGeoLocationDetails().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetGeoLocationResult == false) return false; GetGeoLocationResult other = (GetGeoLocationResult) obj; if (other.getGeoLocationDetails() == null ^ this.getGeoLocationDetails() == null) return false; if (other.getGeoLocationDetails() != null && other.getGeoLocationDetails().equals(this.getGeoLocationDetails()) == false) return false; return true; }
return false; GeoLocationDetails other = (GeoLocationDetails) obj; if (other.getContinentCode() == null ^ this.getContinentCode() == null) return false; if (other.getContinentCode() != null && other.getContinentCode().equals(this.getContinentCode()) == false) return false; if (other.getContinentName() == null ^ this.getContinentName() == null) return false; if (other.getContinentName() != null && other.getContinentName().equals(this.getContinentName()) == false) return false; if (other.getCountryCode() == null ^ this.getCountryCode() == null) return false; if (other.getCountryCode() != null && other.getCountryCode().equals(this.getCountryCode()) == false) return false; if (other.getCountryName() == null ^ this.getCountryName() == null) return false; if (other.getCountryName() != null && other.getCountryName().equals(this.getCountryName()) == false) return false; if (other.getSubdivisionCode() == null ^ this.getSubdivisionCode() == null) return false; if (other.getSubdivisionCode() != null && other.getSubdivisionCode().equals(this.getSubdivisionCode()) == false) return false; if (other.getSubdivisionName() == null ^ this.getSubdivisionName() == null) return false; if (other.getSubdivisionName() != null && other.getSubdivisionName().equals(this.getSubdivisionName()) == false) return false; return true;
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getContinentCode() != null) sb.append("ContinentCode: ").append(getContinentCode()).append(","); if (getContinentName() != null) sb.append("ContinentName: ").append(getContinentName()).append(","); if (getCountryCode() != null) sb.append("CountryCode: ").append(getCountryCode()).append(","); if (getCountryName() != null) sb.append("CountryName: ").append(getCountryName()).append(","); if (getSubdivisionCode() != null) sb.append("SubdivisionCode: ").append(getSubdivisionCode()).append(","); if (getSubdivisionName() != null) sb.append("SubdivisionName: ").append(getSubdivisionName()); sb.append("}"); return sb.toString(); }