Class Address
- 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 forInventoryLocation
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Address()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(Object other)
boolean
equals(Object o)
String
getAddressLine1()
Address 1String
getAddressLine2()
Address 2String
getAddressLine3()
Address 3String
getCity()
CityString
getCountry()
Typically 2 or 3 character country code (e.g.Double
getLatitude()
Latitude portion of GPS coordinates.Double
getLongitude()
Longitude portion of GPS coordinates.String
getPostalCode()
Postal code (or Zip code in the US, usually excluding a 4 digit Zip code extension).String
getStateProvinceRegion()
State / Province / Region (e.g.int
hashCode()
void
setAddressLine1(String addressLine1)
Address 1void
setAddressLine2(String addressLine2)
Address 2void
setAddressLine3(String addressLine3)
Address 3void
setCity(String city)
Cityvoid
setCountry(String country)
Typically 2 or 3 character country code (e.g.void
setLatitude(Double latitude)
Latitude portion of GPS coordinates.void
setLongitude(Double longitude)
Longitude portion of GPS coordinates.void
setPostalCode(String postalCode)
Postal code (or Zip code in the US, usually excluding a 4 digit Zip code extension).void
setStateProvinceRegion(String stateProvinceRegion)
State / Province / Region (e.g.String
toString()
-
-
-
Method Detail
-
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
-
-
canEqual
protected boolean canEqual(Object other)
-
-