Class Address

java.lang.Object
rs.baselib.type.Address
All Implemented Interfaces:
Serializable

public class Address extends Object implements Serializable
A location address.
Author:
ralph
See Also:
  • Field Details

  • Constructor Details

    • Address

      public Address()
      Constructor.
    • Address

      public Address(String street1, String city, String zipCode, Country country)
      Constructor.
      Parameters:
      street1 - street
      city - name of city
      zipCode - ZIP code of city
      country - country
    • Address

      public Address(String street1, String city, String zipCode, String state, Country country)
      Constructor.
      Parameters:
      street1 - street (1st line)
      city - name of city
      zipCode - ZIP code of city
      state - state of city
      country - country
    • Address

      public Address(String street1, String street2, String city, String zipCode, String state, Country country)
      Constructor.
      Parameters:
      street1 - street (1st line)
      street2 - street (2nd line)
      city - name of city
      zipCode - ZIP code of city
      state - state of city
      country - country
  • Method Details

    • getStreet1

      public String getStreet1()
      Returns the street1.
      Returns:
      the street1
    • setStreet1

      public void setStreet1(String street1)
      Sets the street1.
      Parameters:
      street1 - the street1 to set
    • getStreet2

      public String getStreet2()
      Returns the street2.
      Returns:
      the street2
    • setStreet2

      public void setStreet2(String street2)
      Sets the street2.
      Parameters:
      street2 - the street2 to set
    • getCity

      public String getCity()
      Returns the city.
      Returns:
      the city
    • setCity

      public void setCity(String city)
      Sets the city.
      Parameters:
      city - the city to set
    • getZipCode

      public String getZipCode()
      Returns the zipCode.
      Returns:
      the zipCode
    • setZipCode

      public void setZipCode(String zipCode)
      Sets the zipCode.
      Parameters:
      zipCode - the zipCode to set
    • getState

      public String getState()
      Returns the state.
      Returns:
      the state
    • setState

      public void setState(String state)
      Sets the state.
      Parameters:
      state - the state to set
    • getCountry

      public Country getCountry()
      Returns the country.
      Returns:
      the country
    • setCountry

      public void setCountry(Country country)
      Sets the country.
      Parameters:
      country - the country to set
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object