@Valid public class PostalAddress extends Object implements com.anaptecs.jeaf.core.api.ServiceObject
| Modifier and Type | Class and Description |
|---|---|
static class |
PostalAddress.Builder
Class implements builder to create a new instance of class
PostalAddress. |
| Modifier | Constructor and Description |
|---|---|
protected |
PostalAddress()
Default constructor is only intended to be used for deserialization by tools like Jackson for JSON.
|
protected |
PostalAddress(PostalAddress.Builder pBuilder)
Initialize object using the passed builder.
|
| Modifier and Type | Method and Description |
|---|---|
static PostalAddress.Builder |
builder()
Method returns a new builder.
|
static PostalAddress.Builder |
builder(PostalAddress pObject)
Method creates a new builder and initialize it with the data from the passed object.
|
static PostalAddress.Builder |
builder(String pStreet,
String pHouseNumber,
String pCity,
int pPostalCode)
Method creates a new builder and initializes it with the passed attributes.
|
String |
getCity()
Method returns attribute
city. |
String |
getHouseNumber()
Method returns attribute
houseNumber. |
int |
getPostalCode()
Method returns attribute
postalCode. |
String |
getStreet()
Method returns attribute
street. |
void |
setCity(String pCity)
Method sets attribute
city. |
void |
setHouseNumber(String pHouseNumber)
Method sets attribute
houseNumber. |
void |
setPostalCode(int pPostalCode)
Method sets attribute
postalCode. |
void |
setStreet(String pStreet)
Method sets attribute
street. |
String |
toString()
Method creates a new String with the values of all attributes of this class.
|
StringBuilder |
toStringBuilder(String pIndent)
Method returns a StringBuilder that can be used to create a String representation of this object.
|
protected PostalAddress()
protected PostalAddress(PostalAddress.Builder pBuilder)
pBuilder - Builder that should be used to initialize this object. The parameter must not be null.public static PostalAddress.Builder builder()
PostalAddress.Builder New builder that can be used to create new PostalAddress objects.public static PostalAddress.Builder builder(PostalAddress pObject)
pObject - Object that should be used to initialize the builder. The parameter may be null.PostalAddress.Builder New builder that can be used to create new PostalAddress objects. The method never returns
null.public static PostalAddress.Builder builder(String pStreet, String pHouseNumber, String pCity, int pPostalCode)
public void setStreet(String pStreet)
street.pStreet - Value to which street should be set.public String getHouseNumber()
houseNumber.String Value to which houseNumber is set.public void setHouseNumber(String pHouseNumber)
houseNumber.pHouseNumber - Value to which houseNumber should be set.public void setCity(String pCity)
city.pCity - Value to which city should be set.public int getPostalCode()
postalCode.postalCode is set.public void setPostalCode(int pPostalCode)
postalCode.pPostalCode - Value to which postalCode should be set.public StringBuilder toStringBuilder(String pIndent)
StringBuilder StringBuilder representing this object. The method never returns null.Copyright © 2023. All rights reserved.