Class AddressData
java.lang.Object
de.hybris.platform.storelocator.data.AddressData
- All Implemented Interfaces:
Serializable
Simple Data Transport Object for addresses
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAddressData(AddressModel addressModel) ConstructorAddressData(String zip) ConstructorAddressData(String name, String street, String buildingNo, String zip, String city, String countryCode) Constructor -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddressEquals(AddressModel addressModel) Determines if this address is equivalent to the one given as model argumentbooleangetCity()getName()getZip()inthashCode()voidsetBuilding(String building) voidvoidsetCountryCode(String countryCode) voidvoidvoidtoString()
-
Constructor Details
-
AddressData
public AddressData() -
AddressData
- Parameters:
zip-
-
AddressData
Constructor- Parameters:
street-buildingNo-zip-city-countryCode-
-
AddressData
public AddressData(String name, String street, String buildingNo, String zip, String city, String countryCode) Constructor- Parameters:
name-street-buildingNo-zip-city-countryCode-
-
AddressData
Constructor- Parameters:
addressModel-
-
-
Method Details
-
getName
- Returns:
- the name
-
getZip
- Returns:
- the zip
-
setZip
- Parameters:
zip- the zip to set
-
getCity
- Returns:
- the city
-
setCity
- Parameters:
city- the city to set
-
getCountryCode
- Returns:
- the countryCode
-
setCountryCode
- Parameters:
countryCode- the countryCode to set
-
getStreet
- Returns:
- the street
-
getBuilding
- Returns:
- the building
-
setName
- Parameters:
name- the name to set
-
setStreet
- Parameters:
street- the street to set
-
setBuilding
- Parameters:
building- the building to set
-
toString
-
equals
-
hashCode
public int hashCode() -
addressEquals
Determines if this address is equivalent to the one given as model argument- Parameters:
addressModel-- Returns:
- boolean
-