java.lang.Object
com.broadleafcommerce.inventory.domain.Address
All Implemented Interfaces:
Serializable

public class Address extends Object implements Serializable
Business domain representing an address. Specifically, in this context, address is a physical address for InventoryLocation records. The address has latitude and longitude coordinates as well as a physical address, which is often used for sales tax determination, shipping cost determination, and customer inventory pickup messaging.
Author:
Kelly Tisdell (ktisdell)
See Also:
  • Constructor Details

    • Address

      public Address()
  • Method Details

    • getLatitude

      public Double getLatitude()
      Latitude portion of GPS coordinates.
      Returns:
      latitude
    • getLongitude

      public Double getLongitude()
      Longitude portion of GPS coordinates.
      Returns:
      longitude
    • getAddressLine1

      public String getAddressLine1()
      Address 1
      Returns:
      address1
    • getAddressLine2

      public String getAddressLine2()
      Address 2
      Returns:
      address2
    • getAddressLine3

      public String getAddressLine3()
      Address 3
      Returns:
      address3
    • getCity

      public String getCity()
      City
      Returns:
      city
    • getStateProvinceRegion

      public String getStateProvinceRegion()
      State / Province / Region (e.g. in the US: TX, CA, NY; in Canada: AB, BC, ON)
      Returns:
      stateProvinceRegion
    • getCountry

      public String getCountry()
      Typically 2 or 3 character country code (e.g. US, CA, GB; or USA, CAN, GBR)
      Returns:
      country
    • getPostalCode

      public String getPostalCode()
      Postal code (or Zip code in the US, usually excluding a 4 digit Zip code extension).
      Returns:
      postalCode
    • setLatitude

      public void setLatitude(Double latitude)
      Latitude portion of GPS coordinates.
      Parameters:
      latitude -
    • setLongitude

      public void setLongitude(Double longitude)
      Longitude portion of GPS coordinates.
      Parameters:
      longitude -
    • setAddressLine1

      public void setAddressLine1(String addressLine1)
      Address 1
      Parameters:
      address1 -
    • setAddressLine2

      public void setAddressLine2(String addressLine2)
      Address 2
      Parameters:
      address2 -
    • setAddressLine3

      public void setAddressLine3(String addressLine3)
      Address 3
      Parameters:
      address3 -
    • setCity

      public void setCity(String city)
      City
      Parameters:
      city -
    • setStateProvinceRegion

      public void setStateProvinceRegion(String stateProvinceRegion)
      State / Province / Region (e.g. in the US: TX, CA, NY; in Canada: AB, BC, ON)
      Parameters:
      stateProvinceRegion -
    • setCountry

      public void setCountry(String country)
      Typically 2 or 3 character country code (e.g. US, CA, GB; or USA, CAN, GBR)
      Parameters:
      country -
    • setPostalCode

      public void setPostalCode(String postalCode)
      Postal code (or Zip code in the US, usually excluding a 4 digit Zip code extension).
      Parameters:
      postalCode -
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object