Class Address

java.lang.Object
rs.baselib.bean.AbstractBean
rs.baselib.type.Address
All Implemented Interfaces:
java.io.Serializable, IBean, IPropertyChangeProvider, IDirtyable

public class Address
extends AbstractBean
implements java.io.Serializable
A location address.
Author:
ralph
See Also:
Serialized Form
  • Field Details

  • Constructor Details

    • Address

      public Address()
      Constructor.
    • Address

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

      public Address​(java.lang.String street1, java.lang.String city, java.lang.String zipCode, java.lang.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​(java.lang.String street1, java.lang.String street2, java.lang.String city, java.lang.String zipCode, java.lang.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 java.lang.String getStreet1()
      Returns the street1.
      Returns:
      the street1
    • setStreet1

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

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

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

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

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

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

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

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

      public void setState​(java.lang.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 java.lang.Object
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object