public class Address implements Cloneable, java.io.Serializable {
  public Address() {
    street=null;
    city=null;
    state=null;
    country=null;
    postalCode=null;
  }

  public Address(String street, String city, String state, String country, String postalCode) {
    this.street=street;
    this.city=city;
    this.state=state;
    this.country=country;
    this.postalCode=postalCode;
  }

  public String getStreet() {
    return street;
  }

  public String getCity() {
    return city;
  }

  public String getState() {
    return state;
  }

  public String getCountry() {
    return country;
  }

  public String getPostalCode() {
    return postalCode;
  }

  public boolean equals(Object other) {
    if (this==other) {
      return true;
    }

    if (other instanceof Address) {
      Address otherObj=(Address) other;
      if (street==null ? otherObj.street!=null : ! street.equals(otherObj.street)) {
        return false;
      }

      if (city==null ? otherObj.city!=null : ! city.equals(otherObj.city)) {
        return false;
      }

      if (state==null ? otherObj.state!=null : ! state.equals(otherObj.state)) {
        return false;
      }

      if (country==null ? otherObj.country!=null : ! country.equals(otherObj.country)) {
        return false;
      }

      if (postalCode==null ? otherObj.postalCode!=null : ! postalCode.equals(otherObj.postalCode)) {
        return false;
      }

      return true;
    }

    return false;
  }

  public int hashCode() {
    int hash=0;

    if (street!=null) {
      hash=hash*37+street.hashCode();
    }

    if (city!=null) {
      hash=hash*37+city.hashCode();
    }

    if (state!=null) {
      hash=hash*37+state.hashCode();
    }

    if (country!=null) {
      hash=hash*37+country.hashCode();
    }

    if (postalCode!=null) {
      hash=hash*37+postalCode.hashCode();
    }

    return hash;
  }

  public Object clone() throws CloneNotSupportedException {
    Address result=(Address) super.clone();

    return result;
  }

  public String toString() {
    return street+", "+city+", "+state+", "+country+", "+postalCode;
  }

  public void setStreet(String street) {
    this.street=street;
  }

  public void setCity(String city) {
    this.city=city;
  }

  public void setState(String state) {
    this.state=state;
  }

  public void setCountry(String country) {
    this.country=country;
  }

  public void setPostalCode(String postalCode) {
    this.postalCode=postalCode;
  }

  protected String street;
  protected String city;
  protected String state;
  protected String country;
  protected String postalCode;
}
