Class Address
java.lang.Object
com.broadleafcommerce.inventory.domain.Address
- All Implemented Interfaces:
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanAddress 1Address 2Address 3getCity()CityTypically 2 or 3 character country code (e.g.Latitude portion of GPS coordinates.Longitude portion of GPS coordinates.Postal code (or Zip code in the US, usually excluding a 4 digit Zip code extension).State / Province / Region (e.g.inthashCode()voidsetAddressLine1(String addressLine1) Address 1voidsetAddressLine2(String addressLine2) Address 2voidsetAddressLine3(String addressLine3) Address 3voidCityvoidsetCountry(String country) Typically 2 or 3 character country code (e.g.voidsetLatitude(Double latitude) Latitude portion of GPS coordinates.voidsetLongitude(Double longitude) Longitude portion of GPS coordinates.voidsetPostalCode(String postalCode) Postal code (or Zip code in the US, usually excluding a 4 digit Zip code extension).voidsetStateProvinceRegion(String stateProvinceRegion) State / Province / Region (e.g.toString()
-
Constructor Details
-
Address
public Address()
-
-
Method Details
-
getLatitude
Latitude portion of GPS coordinates.- Returns:
- latitude
-
getLongitude
Longitude portion of GPS coordinates.- Returns:
- longitude
-
getAddressLine1
Address 1- Returns:
- address1
-
getAddressLine2
Address 2- Returns:
- address2
-
getAddressLine3
Address 3- Returns:
- address3
-
getCity
City- Returns:
- city
-
getStateProvinceRegion
State / Province / Region (e.g. in the US: TX, CA, NY; in Canada: AB, BC, ON)- Returns:
- stateProvinceRegion
-
getCountry
Typically 2 or 3 character country code (e.g. US, CA, GB; or USA, CAN, GBR)- Returns:
- country
-
getPostalCode
Postal code (or Zip code in the US, usually excluding a 4 digit Zip code extension).- Returns:
- postalCode
-
setLatitude
Latitude portion of GPS coordinates.- Parameters:
latitude-
-
setLongitude
Longitude portion of GPS coordinates.- Parameters:
longitude-
-
setAddressLine1
Address 1- Parameters:
address1-
-
setAddressLine2
Address 2- Parameters:
address2-
-
setAddressLine3
Address 3- Parameters:
address3-
-
setCity
City- Parameters:
city-
-
setStateProvinceRegion
State / Province / Region (e.g. in the US: TX, CA, NY; in Canada: AB, BC, ON)- Parameters:
stateProvinceRegion-
-
setCountry
Typically 2 or 3 character country code (e.g. US, CA, GB; or USA, CAN, GBR)- Parameters:
country-
-
setPostalCode
Postal code (or Zip code in the US, usually excluding a 4 digit Zip code extension).- Parameters:
postalCode-
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-