@Entity public class DefaultAddress extends Object implements Address
Constructor and Description |
---|
DefaultAddress()
Empty constructor
|
DefaultAddress(Address address)
Copy constructor from an existing address.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCountry() |
String |
getFormatted() |
Long |
getId()
Get the system-specific ID of the Address object
|
String |
getLocality() |
String |
getPostalCode() |
String |
getRegion() |
String |
getStreetAddress() |
int |
hashCode() |
void |
setCountry(String country) |
void |
setFormatted(String formatted) |
void |
setId(Long id) |
void |
setLocality(String locality) |
void |
setPostalCode(String postalCode) |
void |
setRegion(String region) |
void |
setStreetAddress(String streetAddress) |
public DefaultAddress()
public DefaultAddress(Address address)
address
- public String getFormatted()
getFormatted
in interface Address
public void setFormatted(String formatted)
setFormatted
in interface Address
formatted
- the formatted address to setpublic String getStreetAddress()
getStreetAddress
in interface Address
public void setStreetAddress(String streetAddress)
setStreetAddress
in interface Address
streetAddress
- the streetAddress to setpublic String getLocality()
getLocality
in interface Address
public void setLocality(String locality)
setLocality
in interface Address
locality
- the locality to setpublic String getPostalCode()
getPostalCode
in interface Address
public void setPostalCode(String postalCode)
setPostalCode
in interface Address
postalCode
- the postalCode to setpublic String getCountry()
getCountry
in interface Address
public void setCountry(String country)
setCountry
in interface Address
country
- the country to setpublic Long getId()
Address
Copyright © 2018. All rights reserved.