Class PostalAddress
java.lang.Object
com.datengaertnerei.test.dataservice.person.PostalAddress
- All Implemented Interfaces:
Comparable<PostalAddress>
Postal address entity class for persistence inspired by
postal address schema.
- Author:
- Jens Dibbern
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(PostalAddress target) boolean
getId()
int
hashCode()
void
setAddressCountry
(String addressCountry) void
setAddressLocality
(String addressLocality) void
setHouseNumber
(String houseNumber) void
void
setPostalCode
(String postalCode) void
setStreetAddress
(String streetAddress) toString()
-
Constructor Details
-
PostalAddress
public PostalAddress()ctor -
PostalAddress
public PostalAddress(String addressCountry, String addressLocality, String postalCode, String streetAddress, String houseNumber) Ctor with values.- Parameters:
addressCountry
- country attribute valueaddressLocality
- city attribute valuepostalCode
- postal code attribute valuestreetAddress
- street address attribute valuehouseNumber
- house number attribute value (if applicable)
-
-
Method Details
-
getId
- Returns:
- getter
-
setId
- Parameters:
id
- setter
-
getAddressCountry
- Returns:
- getter
-
setAddressCountry
- Parameters:
addressCountry
- setter
-
getAddressLocality
- Returns:
- getter
-
setAddressLocality
- Parameters:
addressLocality
- setter
-
getPostalCode
- Returns:
- getter
-
setPostalCode
- Parameters:
postalCode
- setter
-
getStreetAddress
- Returns:
- getter
-
setStreetAddress
- Parameters:
streetAddress
- setter
-
getHouseNumber
- Returns:
- getter
-
setHouseNumber
- Parameters:
houseNumber
- setter
-
compareTo
- Specified by:
compareTo
in interfaceComparable<PostalAddress>
-
equals
-
hashCode
public int hashCode() -
toString
-